Data Layer and UI Layer

  • Thread starter Thread starter Rob Quet
  • Start date Start date
R

Rob Quet

Hi,
I learned that we should keep Data Layer seperate from User Interface layer.
My question is should we :
1. Keep Data Layer code in a seperate project
2. Add a new class for Data Layer within the same project where user
interface code exists.

Thanks
Rob
 
Between these two choices .. "It doesn't really matter".

The idea of having a seperate data layer is that all your connection
creation, command execution and anything database related happens in one
tidy little corner area.

Now for simpler projects it may be just a class. For bigger projects it may
be a number of classes in one project or even multiple projects.

- Sahil Malik [MVP]
ADO.NET 2.0 book -
http://codebetter.com/blogs/sahil.malik/archive/2005/05/13/63199.aspx
 
Back
Top