Specify the desired download in Fluent NHibernate Mapping

How can I specify a downloadable load from one collection to another within NHibernate free display?

I tried the following, but when I get the parent object and access the Features property, I still get two requests:

            HasMany<FeatureInstance>(s => s.Features).AsSet()
            .Inverse()
            .Cascade.SaveUpdate()
            .KeyColumn("SiteId")
            .Access.ReadOnlyPropertyThroughCamelCaseField()
            .Not.LazyLoad();

Thanks Ben

+3
source share
2 answers

I think you also need to define a sampling strategy. see here .

0
source

Despite the fact that you have two requests, it still causes a download, since both requests are executed immediately (with lazy loading, the second request will be executed only on request).

SQL- JOIN, .Fetch.Join(), JOIN. : , , ( , SQL JOIN...), .

+1

All Articles