Updating a Cached DataSet

  • Thread starter Thread starter Roshawn
  • Start date Start date
R

Roshawn

Hi,

Is it possible to add a new row or an array of rows to a cached dataset
(given the appropriate datatable)? If so, how?

Roshawn
 
How are you caching? With the Cache object, the Caching block or throwing
into an App or Session var in ASP.NET? Does not really matter, but the code
can be slightly altered in some cases.

Remember that cache is simply a static item (ie, placed in memory once for
all uses). As such, as soon as you reference the cached version, you should
be updating the cached copy. So, you pull from cache and make changes. You
can explicitly place back in the same location in cache, if you like more
explicit coding.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************
Think Outside the Box!
************************************************
 
Hi George,

I assume a typo,
(ie, placed in memory once for all uses).
(ie, placed in memory once for all users)

Maybe obvious however this is to important to pass because it can in my
opinion be readed in an other way.

Cor
 
Back
Top