Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Mar 10, 2011 04:06 PM by rwilson513
May 24, 2008 05:21 AM|LINK
I have found the properties related to caching in DataAccess Class.
But the caching in not used in DAL Classes and used in BLL Classes.
So can any one tell me why the author creates them in the root class of DAL.
May 24, 2008 07:56 AM|LINK
May 24, 2008 09:22 AM|LINK
Sir, I know the caching is good and apply in BLL.
May 26, 2008 04:17 AM|LINK
The question is that why the author used caching properties in DAL because he already used in BLL
Jun 23, 2008 02:34 PM|LINK
The data layer is a mechanism to talk to the database and not used for business stuff. Hence you would cache the collection of business objects, like News Articles, in the business layer. The business layer uses the DAL to talk to the data store and it manages
any business related rules. The DAL and UI layers are very simple in relation to the business layer.
Mar 10, 2011 04:06 PM|LINK
What if you have a very large query result in the DAL, and you want to retrieve subsets of this data in the BLL? Can you store the raw query result in cache in the DAL (and possibly give it a CacheKeyDependency, similar to the property of a SqlDataSource)?
Then retrieve subsets of this cached data in the BLL?