日期:2014-05-18  浏览次数:20448 次

FluentNHibernate.Mapping的多表关联怎么写
这是我现在的单表MAPPING类

Id(u => u.Id).GeneratedBy.Identity();
  Map(w => w.wareId);
  Map(w => w.wareName);
  Map(w => w.wareInfo);

如果我要在下面多加个类,成为one-to-many的关系 应该怎么写!

请高手指教

------解决方案--------------------
http://www.cnblogs.com/n-pei/archive/2011/01/04/1925648.html
------解决方案--------------------
http://wiki.fluentnhibernate.org/Getting_started#Mappings