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# / March 2008

Tip: Looking for answers? Try searching our database.

Code generation tool for DAL objects

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
hardieca@hotmail.com - 05 Mar 2008 13:07 GMT
Hi,

I'm looking for a tool that will generate DAL objects, hopefully even
stored procs, by examining a SQL Server Express DB. Can anyone
recommend something?

Regards,

Chris
Jon Skeet [C# MVP] - 05 Mar 2008 13:17 GMT
> I'm looking for a tool that will generate DAL objects, hopefully even
> stored procs, by examining a SQL Server Express DB. Can anyone
> recommend something?

LINQ to SQL?

Signature

Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet   Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk

Peter Bromberg [C# MVP] - 05 Mar 2008 14:01 GMT
Have a look at the NetTiers template for Codesmith. Entity Objects would be a
good chouice too, but it's not final yet.
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short Urls & more: http://ittyurl.net

> Hi,
>
[quoted text clipped - 5 lines]
>
> Chris
Cowboy (Gregory A. Beamer) - 05 Mar 2008 15:07 GMT
I agree that .NET Tiers, with CodeSmith, are an option for most. It does
generate a DAL, including sprocs for the database. It is simple to use for
standard one to one mapping, where each object looks like a table.

I worked with .NET Tiers on one project and I am not sure I would use it
again. Part of the reason is the project's failure to map directly to
tables. This was brought on by differences in modeling between our company
and a vendor that worked on part of the project. If you are in complete
control of your database schema, this may not be an issue. On another
project, we found some scalability issues with .NET Tiers, but we found
similar scalability issues with LINQ on this project. Understand this second
project is a project that watches messages 24/7 and more easily bottlenecks.

Decisions about which OR/M to choose are difficult. nHibernate, and the
like, are extremely good at customization, but have a heavier learning
curve. This learning curve may not be an issue for you.

Products like LLBLGen Pro (MVP Franz Bouma) have better data context, and
great tool support, but are not free and do not generate stored procedures.
Free may not be an issue to you and you may find that streamlined SQL
outside of sprocs works, as well. You have stated it as one of your desires,
however.

I do not consider LINQ a replacement for a good DAL. I am sure some will
disagree with me, but it has some severe limitations when you use it for
data transport. It is an excellent way to work with object collections that
adhere to IEnumerable, however, so I am not saying "do not use LINQ". I can
even see LINQ to SQL as a OR/M like solution, in some instances, so this
might be useful for you.

Entity Objects look like a decent enough OR/M, but you have to determine
when you need your project out, as they will not be ready until later this
year. You also have to ask yourself how good the tool support will be when
released, as Microsoft has been better at pushing out new technology than
providing decent tools to work with it.

There are a variety of OR/M products listed on SharpToolBox. I would do some
research and make a decision:
http://sharptoolbox.com/categories/object-relational-mappers

Signature

Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

*************************************************

| Think outside the box!

*************************************************
> Have a look at the NetTiers template for Codesmith. Entity Objects would
> be a
[quoted text clipped - 13 lines]
>>
>> Chris
hardieca@hotmail.com - 07 Mar 2008 15:56 GMT
Thanks for the input, much appreciated!

On Mar 5, 11:07 am, "Cowboy \(Gregory A. Beamer\)"
<NoSpamMgbwo...@comcast.netNoSpamM> wrote:
> I agree that .NET Tiers, with CodeSmith, are an option for most. It does
> generate a DAL, including sprocs for the database. It is simple to use for
[quoted text clipped - 63 lines]
>
> >> Chris

Rate this thread:







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.