Design pattern for data entry forms with LINQ2SQL

Posted by petebob796 on Stack Overflow See other posts from Stack Overflow or by petebob796
Published on 2010-04-22T13:41:11Z Indexed on 2010/04/22 13:43 UTC
Read the original article Hit count: 171

Filed under:
|
|

I am about to start a new winforms data entry application, it already has the database designed which I am comfortable with.

I was going to use LINQ2SQL to access the tables to keep things type safe but am now wondering about design patterns, something I am just getting into. Since LINQ is giving me objects to use should I still create classes in between to hold the validation code and helper methods or should these just go in with the UI?

It just seems I will end up with classes sat in between with little code which will cause the UI classes to have code just getting and setting values in the intermediate class and returning from validation to flag errors...

Any good reading on this? Should I consider the entity framework (or similar) instead?

© Stack Overflow or respective owner

Related posts about c#

Related posts about design-patterns