Example #1
0
 /// <summary>
 /// Clears the second level cache for the specified entity type.
 /// </summary>
 /// <param name="type">The type.</param>
 public void ClearSecondLevelCache(Type type)
 {
     var sessionFactory = new NHibernateSessionManager(_configPath).GetSessionFactory();
     sessionFactory.Evict(type);
 }