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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -