Search code examples
.netconfigurationfluent-nhibernate

Configuring "no-proxy" in Fluent Nhibernate


Just a short question: How do I configure the many-to-one attribute "lazy" to the value "no-proxy" (as mentioned here here ) in Fluent Nhibernate?


Solution

  • Ok, I finally found the answere here:

    In your fluent overrides or mappings, just call

    .LazyLoad(Laziness.NoProxy);
    

    on the mapping.