generate entity classes - CSharp
This is a discussion on generate entity classes - CSharp ; 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 ...
-
generate entity classes
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!!!
-
RE: generate entity classes
Take a look at the Repository Factory which you can find at codeplex.com
-- Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com
"butch77@web.de" wrote:
> 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!!!
>
>
-
Re: generate entity classes
butch77@web.de wrote:
> 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
-
Re: generate entity classes
I believe there are templates for CodeSmith available for this type of
stuff.
However, CodeSmith costs a few bucks. But could be worth it.
(They have a 7 or 30 day evaluation period as well).
Though not related, here is a interesting blog entry as well.
http://stimpy77.spaces.live.com/blog...75C5!375.entry
<butch77@web.de> wrote in message
news:1191913491.397418.25570@o80g2000hse.googlegroups.com...
> 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!!!
>
Similar Threads
-
By Application Development in forum DOTNET
Replies: 0
Last Post: 06-11-2007, 07:35 AM
-
By Application Development in forum XML SOAP
Replies: 2
Last Post: 02-21-2006, 08:34 AM
-
By Application Development in forum CSharp
Replies: 1
Last Post: 01-09-2006, 03:02 PM
-
By Application Development in forum XML SOAP
Replies: 0
Last Post: 04-18-2005, 12:02 PM
-
By Application Development in forum XML SOAP
Replies: 3
Last Post: 10-18-2004, 12:21 AM