I notice in commit:
https://github.com/jagregory/fluent-nhibernate/commit/448bba99dfe1e28ed48e58164d28d04b2d2bd9f8

that: "Moved cache configuration from PersistentConfiguration to
FluentConfiguration"

So I changed my code to:
                FluentNHibernate.Cfg.FluentConfiguration config =
Fluently.Configure()
                    .Cache(c =>
c.ProviderClass<HashtableCacheProvider>())
                    .Database(databaseConfiguration)
                    .Mappings(m =>
                        m.FluentMappings
                        .AddFromAssemblyOf<Entities.Claim>()
                    )
                    .ExposeConfiguration(x =>
x.SetProperty("current_session_context_class",
current_session_context_class));

This generates an exception (duplicate keys being added to the
config.Properties dictionary). It occurs at line 252 of
FluentConfiguration:
                if (cache.IsDirty)
                    Configuration.AddProperties(cache.Create());

This part was added in the mentioned commit.

I admit I don't know much about caching. If I change to
UseSecondLevelCache() then the exception doesn't occur. So, is this a
bug?

Francois

-- 
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to fluent-nhibernate@googlegroups.com.
To unsubscribe from this group, send email to 
fluent-nhibernate+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en.

Reply via email to