Hello All,
I am attempting to use the caching capabilities of ASP.NET with the Mere Mortals framework. What I have figured out so far is:
1. Caching can not be done directly in the BusinessObject because that would make it WEB specific.
2. In my web form I perform the logic to test if the cache already exists.
3. If it doesn't, then we must create it. This process will correctly fill the dataset of the Business Object.
4. If the cache does exist, we create a variable to point to the cache dataset.
5. The question... How do we give the data back to the Business Object so that our WEB form objects can bind to the data?
mmDataSet ds = Cache["myCache"];
if (ds==null)
{
ds = (mmDataSet)this.oBusinessObject.GetData(...);
Cache["myCache"] = ds;
}
else
{
ds = Cache["myCache"];
this.oBusinessObject.?????(ds);
}