PC Review


Reply
Thread Tools Rate Thread

Data Access Layer Question

 
 
Cirene
Guest
Posts: n/a
 
      5th Sep 2008
I am creating a DAL for my web application. Generally, should the code in
the DAL be kept generic so that it can be used in future projects, such as
ExecuteStoredProcedure, or ExecuteSQL?

Or is it better to put in the DAL any code that is "data related", such as
GetCustomer, DeleteProduct, ComparePrices, etc...

What is your opinion?


 
Reply With Quote
 
 
 
 
Cirene
Guest
Posts: n/a
 
      6th Sep 2008
Can you share it with me?

"Mark Rae [MVP]" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> "Cirene" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>
>> I am creating a DAL for my web application.

>
> That's good.
>
>> Generally, should the code in the DAL be kept generic so that it can be
>> used in future projects, such as ExecuteStoredProcedure, or ExecuteSQL?

>
> Yes, IMO.
>
>> Or is it better to put in the DAL any code that is "data related", such
>> as GetCustomer, DeleteProduct, ComparePrices, etc...

>
> No, IMO.
>
> My DAL can be dropped unmodified into any new project, whether WebForms or
> WinForms, and currently supports several RDBMS...
>
> --
> Mark Rae
> ASP.NET MVP
> http://www.markrae.net



 
Reply With Quote
 
Cirene
Guest
Posts: n/a
 
      6th Sep 2008
"Mark Rae [MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> "Cirene" <(E-Mail Removed)> wrote in message [please stop top-posting]
>


Sorry

>>> My DAL can be dropped unmodified into any new project, whether WebForms
>>> or WinForms, and currently supports several RDBMS...

>>
>> Can you share it with me?

>
> No.


I'm wondering if there is a nice community driven, flexible DAL (like the
one you have created.) Do you know of such?


 
Reply With Quote
 
Cirene
Guest
Posts: n/a
 
      6th Sep 2008

"Mark Rae [MVP]" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> "Cirene" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>
>> I'm wondering if there is a nice community driven, flexible DAL (like the
>> one you have created.) Do you know of such?

>
> http://www.microsoft.com/downloads/d...displaylang=en
>


Thanks Mark! Do you know if this works with VS 2008 and .NET FW 3.5? It
doesn't list it in the System Requirements.


 
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
business layer, data access layer , presentation layer for asp.net using C#.net Dhananjay Microsoft VB .NET 6 20th Dec 2006 02:16 AM
business layer, data access layer , presentation layer for asp.net using C#.net Dhananjay Microsoft C# .NET 2 19th Dec 2006 09:23 AM
business layer, data access layer , presentation layer for asp.net using C#.net Dhananjay Microsoft ASP .NET 1 18th Dec 2006 11:35 PM
How to distingusih Business Layer and Data Access Layer requirements pratham Microsoft C# .NET 4 31st Aug 2006 07:18 AM
Data Access Layer design question Guy Noir Microsoft ADO .NET 3 31st Mar 2006 02:36 AM


Features
 

Advertising
 

Newsgroups
 


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