NCache as NHibernate Second Level Cache

Learn how to use NCache as second level cache for NHibernate. NCache provides an NHibernate second level cache provider that you can plug-in through web.config or app.config changes. NCache has also implemented database synchronization feature in this so you can specify which classes should be synchronized with the database. NCache lets you specify SqlDependency or any OLEDB compliant databased dependency for this.