문제

FN R1.0에서 게으른 하중을 비활성화하는 방법은 무엇입니까?

도움이 되었습니까?

해결책

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

다른 팁

다음과 같이 시도 할 수 있습니다.

Not.LazyLoad();

매핑 생성자 내부.

이와 같이:

References(x => x.Something).Not.LazyLoad();
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top