Business object and linq2SQL

Posted by Overdose on Stack Overflow See other posts from Stack Overflow or by Overdose
Published on 2010-05-11T12:53:33Z Indexed on 2010/05/11 13:14 UTC
Read the original article Hit count: 137

Filed under:
|
|

What is the optimal way to write the code which interacts with DB using linq2SQL? I need to add some business logic to the entities. So I guess there are two ways:

  1. Write some wrapper class. The main minus is that many fields are the same, so i don't feel it as DRY style.
  2. Add business logic methods to linq2sql entities(these classes are partial) directly
  3. ???

© Stack Overflow or respective owner

Related posts about .NET

Related posts about design