nhibernate-core icon indicating copy to clipboard operation
nhibernate-core copied to clipboard

Nested lazy load

Open robertovaldesperez opened this issue 4 years ago • 0 comments

Hello, I have this configuration:

Development.cs HasMany (x => x.Assets) .KeyColumn ("Promotion_ID"). NotFound.Ignore (). LazyLoad (). Cascade.AllDeleteOrphan (). AsSet ();

Asset.cs References(x => x.Estate).Column("EstateId").NotFound.Ignore().Fetch.Join().LazyLoad().ReadOnly(); References(x => x.Property).Column("PropertyId").NotFound.Ignore().Fetch.Join().LazyLoad().ReadOnly();

When I do a NHibernateUtil.Initialize (development.Assets)

This automatically initializes asset.Property and Property is Lazyload

Best Regards, Roberto.

robertovaldesperez avatar Jul 19 '21 21:07 robertovaldesperez