Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old September 5th, 2008, 05:45 AM
Cirene
Guest
 
Posts: n/a
Default Data Access Layer Question

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?


  #2  
Old September 5th, 2008, 09:15 AM
Mark Rae [MVP]
Guest
 
Posts: n/a
Default Re: Data Access Layer Question

"Cirene" <cirene@nowhere.comwrote in message
news:ONylhGxDJHA.1180@TK2MSFTNGP04.phx.gbl...
Quote:
I am creating a DAL for my web application.
That's good.
Quote:
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.
Quote:
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

  #3  
Old September 6th, 2008, 02:45 AM
Cirene
Guest
 
Posts: n/a
Default Re: Data Access Layer Question

Can you share it with me? :)

"Mark Rae [MVP]" <mark@markNOSPAMrae.netwrote in message
news:%23v0Lf5yDJHA.3484@TK2MSFTNGP05.phx.gbl...
Quote:
"Cirene" <cirene@nowhere.comwrote in message
news:ONylhGxDJHA.1180@TK2MSFTNGP04.phx.gbl...
>
Quote:
>I am creating a DAL for my web application.
>
That's good.
>
Quote:
>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.
>
Quote:
>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

  #4  
Old September 6th, 2008, 03:35 AM
Mark Rae [MVP]
Guest
 
Posts: n/a
Default Re: Data Access Layer Question

"Cirene" <cirene@nowhere.comwrote in message
news:OoBdNE8DJHA.4492@TK2MSFTNGP05.phx.gbl...

[please stop top-posting]
Quote:
Quote:
>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.


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

  #5  
Old September 6th, 2008, 03:35 PM
Cirene
Guest
 
Posts: n/a
Default Re: Data Access Layer Question

"Mark Rae [MVP]" <mark@markNOSPAMrae.netwrote in message
news:OrB03e8DJHA.4492@TK2MSFTNGP05.phx.gbl...
Quote:
"Cirene" <cirene@nowhere.comwrote in message [please stop top-posting]
>
Sorry
Quote:
Quote:
Quote:
>>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?


  #6  
Old September 6th, 2008, 04:55 PM
Mark Rae [MVP]
Guest
 
Posts: n/a
Default Re: Data Access Layer Question

"Cirene" <cirene@nowhere.comwrote in message
news:uiUJqzCEJHA.2072@TK2MSFTNGP04.phx.gbl...
Quote:
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


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

  #7  
Old September 6th, 2008, 06:05 PM
Cirene
Guest
 
Posts: n/a
Default Re: Data Access Layer Question


"Mark Rae [MVP]" <mark@markNOSPAMrae.netwrote in message
news:%230z5xeDEJHA.612@TK2MSFTNGP06.phx.gbl...
Quote:
"Cirene" <cirene@nowhere.comwrote in message
news:uiUJqzCEJHA.2072@TK2MSFTNGP04.phx.gbl...
>
Quote:
>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.


  #8  
Old September 7th, 2008, 12:45 AM
Mark Rae [MVP]
Guest
 
Posts: n/a
Default Re: Data Access Layer Question

"Cirene" <cirene@nowhere.comwrote in message
news:e6y%23AIEEJHA.3844@TK2MSFTNGP05.phx.gbl...
Quote:
>
Do you know if this works with VS 2008 and .NET FW 3.5?
Yes it does.


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

 

Bookmarks

Thread Tools

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles