code_junkie

Nhibernate foreign key to foreign key collection mapping?

Nov 13th, 2011
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. <bag name="SecuredPages" lazy="true" inverse="false" cascade="none">
  2. <key column="RoleId" />
  3. <many-to-many class="RealEstate.Core.Domain.SecuredPage,RealEstate.Core" />
  4. </bag>
  5.  
  6. SecuredPage.RoleId = Staff.id
  7.  
  8. SecurePage.RoleId = Staff.StaffLevel
Add Comment
Please, Sign In to add comment