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 ...

+ Reply to Thread
Results 1 to 4 of 4

generate entity classes

  1. Default 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!!!


  2. Default 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!!!
    >
    >


  3. Default 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

  4. Default 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!!!
    >




+ Reply to Thread

Similar Threads

  1. Why does svcutil generate two classes in different namespaces?
    By Application Development in forum DOTNET
    Replies: 0
    Last Post: 06-11-2007, 07:35 AM
  2. Unable to generate classes with XSD
    By Application Development in forum XML SOAP
    Replies: 2
    Last Post: 02-21-2006, 08:34 AM
  3. System Design - Entity Classes
    By Application Development in forum CSharp
    Replies: 1
    Last Post: 01-09-2006, 03:02 PM
  4. cannot generate classes
    By Application Development in forum XML SOAP
    Replies: 0
    Last Post: 04-18-2005, 12:02 PM
  5. Faild to generate classes from xsd file using xsd.exe
    By Application Development in forum XML SOAP
    Replies: 3
    Last Post: 10-18-2004, 12:21 AM