I could not find the answer to this question, so I assume that this is what I am doing wrong.
I have a PersistenceModel where I set the convention as follows: -
persistenceModel.Conventions.Add(DefaultLazy.Always());
However, for one of HasManyToMany relationships in one of my objects, I want the download to load, which I configure as follows: -
HasManyToMany(x => x.Affiliates).Not.LazyLoad();
Intuitively, I expect an intensive load to happen, as I redefine the value of the lazy load, which I indicated as convention, but still lazy loads. If I set the DefaultLazy agreement and never installed LazyLoad in separate respects, it doesn't work either.
Any ideas?
nhibernate lazy-loading
Dotnet
source share