Data caching

Topics: Prism v4 - WPF 4
Jan 15, 2014 at 8:33 AM

Is there any built-in mechanism for caching data, such as lookup tables from a database?

Jan 15, 2014 at 6:31 PM

Prism for WPF / Silverlight is a client-side library oriented to manage UI composition, modules and comunication between loosely coupled components in the client.
It does not provide any functionality as out of the box to communicate or interact with data sources, web services or other external resources. That being said, Prism does not provide any build-in mechanism for caching data.

However you can create your own shared service that could manage your communication with the data base and the local cache. That service could be easily exported inside your Prism application so that it could be consumed by the corresponding components in each module.

You can find more information about creating and exporting services in the following chapter of the documentation:
Damian Cherubini