how to persist/reload the database after close the browser

Oct 28, 2010 at 12:31 AM

how to persist/reload the database after close the browser? I need to keep the data on the table and reload it when I the open the silverlight application again.

Coordinator
Oct 28, 2010 at 1:56 AM

Hook in the application exit event and flush the keys. Basically, Sterling serializes everything immediately except for keys, which are in memory. If you follow the examples, the Engine will get disposed when the browser closes. Dispose, in turn, flushes all keys in all databases so everything is persisted for you.