In my first ASP.NET MVC applications, the model was a simple O / R mapping between a table and classes, managed by the Entity Framework.
Now I would like to add some meat to this skeleton and introduce business methods for the generated classes. What is recommended for this in ASP.NET MVC (with Entity Framework)? My favorite would be a solution that can also be used at the service level, without ASP.NET MVC links, so the same domain logic can also be reused in the desktop client.
Technically, I think it should be possible to extend the generated classes in such a way as to preserve additional business logic, even if O / R classes need to be updated. (This is more of a question related to the Entity Framework.)
Edit: Thank you very much for your input and information on the next version of Entity Framework (4.0). Creating two sets of classes, one oscillator to represent data in the level of stability, and the other for real business logic sounds interesting.
source share