PC Review


Reply
Thread Tools Rate Thread

Code generation tool for DAL objects

 
 
hardieca@hotmail.com
Guest
Posts: n/a
 
      5th Mar 2008
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
 
Reply With Quote
 
 
 
 
Jon Skeet [C# MVP]
Guest
Posts: n/a
 
      5th Mar 2008
<(E-Mail Removed)> wrote:
> 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?

--
Jon Skeet - <(E-Mail Removed)>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk
 
Reply With Quote
 
Peter Bromberg [C# MVP]
Guest
Posts: n/a
 
      5th Mar 2008
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


"(E-Mail Removed)" wrote:

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

 
Reply With Quote
 
Cowboy \(Gregory A. Beamer\)
Guest
Posts: n/a
 
      5th Mar 2008
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/o...tional-mappers


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

*************************************************
| Think outside the box!
|
*************************************************
"Peter Bromberg [C# MVP]" <(E-Mail Removed)> wrote in message
news:3938B90C-5EB0-4488-BA44-(E-Mail Removed)...
> 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
>
>
> "(E-Mail Removed)" wrote:
>
>> 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
>>



 
Reply With Quote
 
hardieca@hotmail.com
Guest
Posts: n/a
 
      7th Mar 2008
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
> 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/o...tional-mappers
>
> --
> Gregory A. Beamer
> MVP, MCP: +I, SE, SD, DBA
>
> *************************************************
> | Think outside the box!
> |
> *************************************************
> "Peter Bromberg [C# MVP]" <pbromb...@yahoo.NoSpamMaam.com> wrote in messagenews:3938B90C-5EB0-4488-BA44-(E-Mail Removed)...
>
> > 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

>
> > "hardi...@hotmail.com" wrote:

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


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DAL code generation tool (C# and/or VB.NTE) for SQL Server Ce 3.0? MobileBoy36 Microsoft Dot NET Compact Framework 2 4th Jul 2006 12:37 PM
Unit Test Code Generation Tool in .NET =?Utf-8?B?U2hhbg==?= Microsoft C# .NET 1 18th Mar 2005 02:33 PM
Re: Code Generation Tool for n-tier projects Samuel Hon Microsoft C# .NET 0 6th Sep 2004 09:55 AM
Tool to UML model and C# code generation William Stacey Microsoft C# .NET 6 17th Dec 2003 04:01 PM
Third party code generation tool for .net Kay Microsoft ADO .NET 2 10th Jul 2003 07:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:02 PM.