Hi a have following inheritance :
class A {
} class B : A {
}
class C {
public A Product{get;set}
}
and fluent mapping where i map C like :
References(x => x.Product).Cascade.SaveUpdate();
when i try to convert Product to B a get cast exception because nhibernate return a proxy of type A , i tried to set up lazy load no proxy for that property but it didn't work : References(x => x.Product).LazyLoad(Laziness.NoProxy).Cascade.SaveUpdate(); how can i fix it ? Thanks in advance