LINQ objects as business objects - pro / cons

The dbml file generated by Visual Studio (sqlmetal) has objects mapped to database tables. In your opinion, are these clans suitable for use as domain model classes? Or should we avoid them and isolate them only at the data access level?

thanks

+3
source share
4 answers

In most cases, the layer of sweet kindness between entity objects and SQL writing is your DAL. The whole purpose of LINQ is to provide much more expressive designs with your DAL than was possible in the past.

LINQ BL , GetCustomersByLastName(string), DAL. , , - , - BL . , DAL BL. LINQ BL DAL. DAL ; , , . true .

LINQ DAL, LINQ?

+4

LINQ - . , - LINQ ( , AutoMapper, ).

, , , , . , , , Entity Framework? EF - .

+3

, , . , .

, .

, , , , .

+1

, .

WCF, , linq .

, xml- (, , ).

LINQ, , . , , .

0

Source: https://habr.com/ru/post/1709116/


All Articles