generate entity classes

B

butch77

Hi

For every project I need entity classes for each table.
I'm using an XSD DataSet to retrieve the data from the DB.

Since these classes are always very similar, I was wondering, whether
I could just develop a little generator program, that uses a template
to generate my class.

I've been searching the web for any good software for entity-class
generators but I couldn't find any. Any suggestions?

So my main question now is: what is the best way (very practically
explained) how to read the DBs table structure with all primary and
foreign keys?

And is there any way to maybe develop a plugin for VS that reads a XSD
file and generates the entities.

Thanks!!!
 
J

James Crosswell

Hi

For every project I need entity classes for each table.
I'm using an XSD DataSet to retrieve the data from the DB.

Since these classes are always very similar, I was wondering, whether
I could just develop a little generator program, that uses a template
to generate my class.

I've been searching the web for any good software for entity-class
generators but I couldn't find any. Any suggestions?

So my main question now is: what is the best way (very practically
explained) how to read the DBs table structure with all primary and
foreign keys?

And is there any way to maybe develop a plugin for VS that reads a XSD
file and generates the entities.

Maybe look at netTiers. It sounds like it does what you want.

Best Regards,

James Crosswell
Microforge.net LLC
http://www.microforge.net
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top