vgru
vgru

Reputation: 51224

SQLite connection pooling with Fluent NHibernate

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

Answers (1)

s1mm0t
s1mm0t

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

Related Questions