Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / October 2007

Tip: Looking for answers? Try searching our database.

generate entity classes

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
butch77@web.de - 09 Oct 2007 08:04 GMT
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!!!
Peter Bromberg [C# MVP] - 09 Oct 2007 12:46 GMT
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

> Hi
>
[quoted text clipped - 16 lines]
>
> Thanks!!!
James Crosswell - 09 Oct 2007 13:06 GMT
> Hi
>
[quoted text clipped - 14 lines]
> 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
sloan - 09 Oct 2007 15:23 GMT
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/cns!FE05918FD4D775C5!375.entry

> Hi
>
[quoted text clipped - 16 lines]
>
> Thanks!!!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.