Design pattern for data entry forms with LINQ2SQL
- by petebob796
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?