i have a Class Map CardMatch which have Employee and Card as reference
Id(x => x.MatchId).GeneratedBy.Sequence(“CARDMATCH_SEQ”).Column(“MATCHID”);
References(x => x.Employee).Column("EMPNO");
References(x => x.Card).Column("CARDID").LazyLoad(Laziness.False).Cascade.SaveUpdate();
CardMatch _cm = _rep.getById(1);
_cm.Card.CardLimit = 500;
_rep.Update(_cm);
doesnt update the Child (Card). How can i update the Child?
IMO your FNH mapping is correct. Flush method should be called on ISession instance. The last line is most likely redundand because NH tracks changes on its own.