How do you map LINQ-to-SQL to your BLL classes?

I am considering using LINQ-to-SQL to create a DAL in my application. I usually create a DAL manually, as I'm not a big fan of ORM (too much IMO abstraction), but I'm trying to save time for an impatient client.

My question is, how do you map LINQ-to-SQL generated classes to your BLL classes? Do you just add your code to the classes created by LINQ-to-SQL (these are partial classes) and don’t create BLL classes at all (so does the class work both as a DAL and a BLL class) or how do you usually do this?

thanks

+3
source share
1 answer

, LINQ to SQL : , , - , , - LINQ to SQL, LINQ SQL . - BLL, - DAL. LINQ to SQL , DAL - ( BLN-); DAL; DAL, .

, : LINQ to SQL DAL, BLL, , , , .

+7

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


All Articles