dataset in Cache object

G

Guest

On my first page I create and persist my datasets into the Cache object. On the following pages if I excecutenonquery commands in transactions that update or delete from the database, I find that I must recreate my datasets. doing an adapter.fill is not enough to refresh the dataset. Is there a better way to refresh datasets if a db update was done via commands. Is this a problem that I persist to the cache object?
 
S

Scott Allen

If the underlying data is changing frequently, sometimes it is better
not to cache the data at all.

Fill should refresh the DataSet if you have the MissingSchemaAction
property of the adapter set to the AddWithKey enumeration value.
Perhaps you could post some code to look at the problem more
specifically.
HTH,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top