开发者

Is there a basic template I can use to create POCOs from a Db by MyGeneration?

What is the main code template used in common with MyGeneration when it comes to creating POCOS from a Db schema?

Basically I开发者_运维百科 want to have classes without any behavior; just properties (collections properly defined based on the associations in Db).

Thanks!


It wouldn't be hard to modify the dOODads entity template to just generate the classes. Out of the box it's already pretty much right, just generating a simple class. There is some custom behaviour but any tweaks required would be pretty minor.

Generating the related collections/objects would be the only significant work required. There are samples in the MyGeneration Template library that demonstrate collecting related objects.


You can use .netTiers application framework using CodeSmith Generator. This creates domain objects using the tables. It can create DAL's and much more.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜