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.
精彩评论