c# - NHibernate snchronize CrossRefrenced Properties -
i'm using nhibernate orm mapper. have 2 classes, classa , classb. classa has property of type classb , classb has property of type classa! these should backed 1 database column! , if fill property on 1 of classes, other should filled! possible nhibernate?
mapping of classa
references(x => x.classb, "classbid").cascade.saveupdate().unique();
mapping of classb
hasone(x => x.classa).propertyref(x => x.classb).cascade.saveupdate();
what want is, classes synchronized, without reloading!
Comments
Post a Comment