Monday, March 12, 2012

What is the data layer responsible for?

Hi,

I'm building a 3 tier system, and was just wondering if the data layer is responsible for putting the data into the business objects and then returning this, or does the data layer return the dataset and the business layer puts the recordset into the business objects.

Thanks

AuschuckyThe Data layer process your data and pass the result to your DAL(data access layer) or if you are an object developer you use ORM(object relational mapper) which passes it to you BLL (business object layer). The dataset is an in memory version of your data tables but it is native to the Data Access Layer because it is part of Microsoft ADO.NET library. If you are using ORM you may not use dataset unless you are one of those who use hybrid because most object tools meaning the ones you can buy leave you data layer almost useless. Post again if you need more help. Hope this helps.
It depend on what your doing. Normaly my data layer gets the data using a datareader (no dataset), put the data in the business object and returns it.

0 comments:

Post a Comment