Null Reference
Null Reference

Reputation: 11360

Auto generate business objects from entity framework plus auto mapping

For a large project with hundreds of tables, is there a way to automatically generate the business objects based on the .edmx file rather than to create them manually one by one?

Upvotes: 0

Views: 924

Answers (1)

Betty
Betty

Reputation: 9189

You could use custom t4 templates to generate them. If you then need to edit them manually, i guess you could make them partial but then you'd need to make the other half of the partial class manually.

http://msdn.microsoft.com/en-us/data/gg558520.aspx

Upvotes: 2

Related Questions