Free + SQLite: Exception in SetBatchSize ()

I am trying to configure Fluent NHibernate to allow me to dose. The NotSupportException exception occurs when I try to execute session.SetBatchSize (x), which reads: "There is no batch size for the factory session, batch processing is disabled. Set adonet.batch_size = 1 to enable batch processing." However, when I look at the SessionFactory properties, the entry [adonet.batchsize, 1] appears. Am I obviously not noticing something here?

Factory Creation:

factory = Fluently.Configure()
          .Database(
               SQLiteConfiguration.Standard
               .UsingFile(fileName).AdoNetBatchSize(1)
            )
           .Mappings(m => m.FluentMappings.AddFromAssemblyOf<Person>())
           .ExposeConfiguration(BuildSchema)
           .BuildConfiguration()
           .BuildSessionFactory();

Insert function:

 using(var session = factory.OpenSession())
 using (var transaction = session.BeginTransaction())
 {
       session.SetBatchSize(1); //Exception is being thrown here.

       session.Save(myPerson);  //myPerson uses an assigned Id (not Identity)

       transaction.Commit();
 }

, AdoBatchSize (.. config.Properties [ "adonet.batch size" ] = "1";). - App.Config Fluent NHibernate? , , BatchSize- NonBatchingBatcher, , . adonet.batch_size SessionFactory, NonBatchingBatcher SqlClientBatcher?

, Dubs.

+3

All Articles