c# - NHibernate nested class mapping issue -


I have classes. How can I write a mapping document for ManBanc.ID column? I host a branch in my database No, just want to use branch ID for MAINBRANCHCODE. Any remedy?

  public class bundle {public virtual decimal number {get; Set; } Public Virtual Bundle Transfer Information Notice {Receive; Set; }} Public Class Bundle Entry Information {Public Virtual Branch Manbanc {Received; Set; }} Public Class Branch {public virtual short id {get; Set; }}  

My mapping document:

  & lt; Class name = "PromissoryNotes.Server.Data.Bundle, PromissoryNotes.Server.Data" table = "bundle" lazy = "true" & gt; & Lt; Id name = "id" column = "id" type = "decimal" & gt; & Lt; Generator class = "increment increase" /> & Lt; / Id & gt; & Lt; Property Name = "Information.ManBrash.ID" column = "MENBRANKOKEVE" type = "small" & gt; & Lt; / Property & gt; & Lt; / Square & gt;  

Use a component mapping

  Lt; Class name = "BundleEntranceInformation" & gt; & Lt; Component name = "mainbrunch" & gt; & Lt; Property name = "id" column = "MAINBRANCHCODE" /> & Lt; / Component & gt; & Lt; / Square & gt;  

Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -