Open robertovaldesperez opened 3 years ago
@leemhenson @KevM @aaronjensen @paulbatum Can somebody help me? Fetch.Join() and LazyLoad() does it make sense to put them together?
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.
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.