views:

242

answers:

1

Hi,

How can i configure SysCache2 2nd-Level Cache with Fluent NHibernate configuration ?

    private ISessionFactory CreateSessionFactory()
    {
        return Fluently.Configure()
            .Database(MsSqlConfiguration.MsSql2008.ConnectionString(_connectionString)
            .Cache(c => c.UseQueryCache())
            .Dialect<FullTextSearchEnabledMsSql2008Dialect>()
            .UseReflectionOptimizer())
            .Mappings(m => m.FluentMappings.AddFromAssembly(Assembly.GetExecutingAssembly()))
            .BuildSessionFactory();
    }
A: 

I don't think you can. You have to configure it through web.config.

cbp

related questions