pencilCake
pencilCake

Reputation: 53243

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!

Upvotes: 0

Views: 257

Answers (2)

Mac
Mac

Reputation: 2342

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.

Upvotes: 0

Dhruv
Dhruv

Reputation: 61

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

Upvotes: -1

Related Questions