HighTechTalks DotNet Forums  

Dataset or datatable will not persist in cache

ASP.net Caching microsoft.public.dotnet.framework.aspnet.caching


Discuss Dataset or datatable will not persist in cache in the ASP.net Caching forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default Dataset or datatable will not persist in cache - 04-25-2005 , 04:51 PM






If i have a valid Dataset or Datatable with rows and i put it into the
cache by way of insert, why would the DS or DT have no rows when i
retrieve it back using get?


Reply With Quote
  #2  
Old   
Brock Allen
 
Posts: n/a

Default Re: Dataset or datatable will not persist in cache - 04-25-2005 , 05:01 PM






Are you sure you're getting back a DataTable instead of null? It's possible
that the cache purged the item given the conditions you specified in the
Insert. But if there is a valid DataTable but no rows, then something else
is at work here, not the cache.

-Brock
DevelopMentor
http://staff.develop.com/ballen



Quote:
If i have a valid Dataset or Datatable with rows and i put it into the
cache by way of insert, why would the DS or DT have no rows when i
retrieve it back using get?





Reply With Quote
  #3  
Old   
Ben Strackany
 
Posts: n/a

Default Re: Dataset or datatable will not persist in cache - 04-26-2005 , 12:10 PM



Also if you're using DefaultView you could have problems. If you want to use
dataviews you should create a new DataView when you pull a datatable or
dataset out of the cache.

--
Benjamin Strackany
http://www.developmentnow.com


"Brock Allen" <ballen (AT) NOSPAMdevelop (DOT) com> wrote

Quote:
Are you sure you're getting back a DataTable instead of null? It's
possible
that the cache purged the item given the conditions you specified in the
Insert. But if there is a valid DataTable but no rows, then something else
is at work here, not the cache.

-Brock
DevelopMentor
http://staff.develop.com/ballen



If i have a valid Dataset or Datatable with rows and i put it into the
cache by way of insert, why would the DS or DT have no rows when i
retrieve it back using get?







Reply With Quote
  #4  
Old   
AT
 
Posts: n/a

Default Re: Dataset or datatable will not persist in cache - 04-26-2005 , 07:17 PM



I use a valid dataset and have tried a datatable, after i retrieve from
the cache, the object is valid( not equal to nothing), but there are no
rows. I guess its a mystery.


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.