Search code examples
nhibernatefluent-nhibernate

fluent nhibernate r1.0 fluent mapping disable lazy load


how to disable lazy loading in fn r1.0?


Solution

  • Fluently.Configure()
    .Database(
           SQLiteConfiguration.Standard
           .InMemory)
           .Mappings( m => m.AutoMappings
               .Add( AutoMap.AssemblyOf<_Field>() ) )
           .Conventions
               .Add( FluentNHibernate.Conventions.Helpers.DefaultLazy.Never() )
           .BuildSessionFactory();