Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cache with MM Business Objects
Message
From
07/05/2004 14:35:25
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Cache with MM Business Objects
Miscellaneous
Thread ID:
00902022
Message ID:
00902022
Views:
61
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);
}
Gordon de Rouyan
DC&G Consulting
Edmonton, Alberta
Email: derouyag@shaw.ca
Next
Reply
Map
View

Click here to load this message in the networking platform