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

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

c++ - Troubles when compiling phash program -