Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested lazy load #500

Open
robertovaldesperez opened this issue Jul 19, 2021 · 2 comments
Open

Nested lazy load #500

robertovaldesperez opened this issue Jul 19, 2021 · 2 comments

Comments

@robertovaldesperez
Copy link

robertovaldesperez commented Jul 19, 2021

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

This comment was marked as spam.

@aaronjensen

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants