mapping - After upgrading to Nhibernate 3.2, public Property value is null though mapped private variable has value -


we upgrated nhibernate 3.2 , getting problem in following scenarios: public properties returns mapped private field value returns null

// mapping

<many-to-one lazy="no-proxy" name="agent" cascade="none" column="`agentid`" not-null="false" access="field.camelcase-underscore"/> 

// property declared follow

private agent _agent;  public agent agent {    get{ return _agent; } } 

after getting entity session, in quick watch can see value _agent, agent property returns null

i think agent property should virtual since nh needs create proxy handle "no-proxy" setting in correct way.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -