Seperate business and datalayer in c#

Hi,
I am going to make a larger project, and would like to know if any of you experts know some good resources to read about how to seperate the Data Layer from the Business Layers in c#?
Thanks in advance
DofsAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
softbeeConnect With a Mentor Commented:
Download the "ASP.NET TimeTracker(CSVS) from MSDN. It answers all your questions and more.
0
 
Smacky311Connect With a Mentor Commented:
Use SubSonic http://www.subsonicproject.com/, it automatically creates and updates your DataLayer (DAL), its free,  takes only a few hours to learn with their easy to follow training vidoes, and you don't have to spend alot of time learning/creating/updating DAL's.  Then you can concentrate on creating a Business layer (BL) which is just a set of methods to implement business needs like so:

public bool AddToShoppingCart(string item)
        {
                //Logic from DAL (built by SubSonic)
                ShoppingCartController cntrlrShoppingCart= new ShoppingCartController();
                cntrlrShoppingCart.Insert(item);
                return true;
        }
0
 
DofsAuthor Commented:
I am going to use NHibernate to connect to my database to make it ORM. I have read http://www.codeproject.com/KB/architecture/NHibernateBestPractices.aspx where they talk a little about how to distinguise data and business layer so you don't merge them by time. But I would like to read a little more on how to do it?
Isn't SubSonic just another way to do ORM as NHIbernate does?
0
 
DofsAuthor Commented:
I am closing this thread.
0
All Courses

From novice to tech pro — start learning today.