开发者

mapping classes nested within another class using fluent nhibernate automapping

开发者 https://www.devze.com 2023-01-13 00:06 出处:网络
How to map a class that has another class nested inside it. I am using automapping. It gives exception \'NHibernate.MappingException: Association references unmapped class: class1+class2\'

How to map a class that has another class nested inside it. I am using automapping. It gives exception 'NHibernate.MappingException: Association references unmapped class: class1+class2'

suppose you have

public cla开发者_如何学运维ss baseclass
{

} 

public class class1 : baseclass
{

  public class class2 : baseclass
  {

  }
} 


This issues is fixed the repo. You may view this post on fluent support page..

http://support.fluentnhibernate.org/discussions/help/288-map-a-class-that-has-another-class-nested-inside-using-automapping

0

精彩评论

暂无评论...
验证码 换一张
取 消