fluent-nhibernate icon indicating copy to clipboard operation
fluent-nhibernate copied to clipboard

Add support Cache.never new NHibernate feature

Open gokhanabatay opened this issue 2 years ago • 1 comments

Hi, For perfromance needs NHibernate now supports to exclude desired entities from second level cache features. https://github.com/nhibernate/nhibernate-core/pull/2744

Could you add support Cache.Never() for FluentNHibernate mapping.

public class EntUserPolicyDefMap : ClassMap<EntUserPolicyDef>
{
        public EntUserPolicyDefMap()
        {
               Cache.Never();
        }
}

Does Cache.CustomUsage("never") is a option to set cache strategy.

gokhanabatay avatar Mar 23 '22 08:03 gokhanabatay

Its working with Cache.CustomUsage("never") in fluent nhibernate mapping file

gokhanabatay avatar Apr 05 '22 21:04 gokhanabatay