Reputation: 51224
Is there a way to setup SQLite connection pooling using Fluent NHibernate configuration?
E.g. equivalent of DataSource=:memory:
would be:
var sessionFactory = Fluently
.Configure()
.Database(SQLiteConfiguration.Standard.InMemory)
(etc.)
Is there something eqivalent to "Pooling=True;Max Pool Size=1;"
?
Upvotes: 3
Views: 1911
Reputation: 6095
You still need to specify a connection string when using Fluent NHibernate (or NHibernate without fluent for that matter) in the NHibernate configuration so you can just enable connection pooling in the connection string as you would if you were using ADO.NET.
Upvotes: 3