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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

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

android - How to create dynamically Fragment pager adapter -