Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Jan 02, 2012 08:06 AM|LINK
Are you talking about tutorials? Or what?
I mean when you use LINQ, EF or TableAdapter... When you see the auto-generated codes, you will find that model classes are always mixed with CRUD mtthods. If you are using EF, you can see codes like this:
using (XXXEntityContext efc = new XXXEntityContext())
Don't you see Insert, delete, as well as update things come from XXXEntitContext, but the model class comes from this same Namespace,too...
I think it's better to seperate them from each other.