0

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?

4

1 回答 1

2

您可以使用自定义 t4 模板来生成它们。如果您随后需要手动编辑它们,我想您可以将它们设为部分,但您需要手动制作部分类的另一半。

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

于 2012-10-06T19:56:07.020 回答