nhibernate / fluent-nhibernate

Fluent NHibernate!
BSD 3-Clause "New" or "Revised" License
1.66k stars 686 forks source link

Nested lazy load #500

Open robertovaldesperez opened 3 years ago

robertovaldesperez commented 3 years ago

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 commented 5 months ago

@leemhenson @KevM @aaronjensen @paulbatum Can somebody help me? Fetch.Join() and LazyLoad() does it make sense to put them together?

aaronjensen commented 5 months ago

With respect, did your account get hacked? You asked a question 3 years ago and then you started pinging people you don't know to try and get an answer? You may want to find a community of people that still use NHibernate and ask them. Or ask ChatGPT. I haven't touched it in over a decade.