Data Access Layer Question

  • Thread starter Thread starter Cirene
  • Start date Start date
C

Cirene

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?
 
Can you share it with me? :)

Mark Rae said:
That's good.


Yes, IMO.


No, IMO.

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