带有元素列表的映射字典
Fluent NHibernate 是否可以使用以下签名映射属性?
IDictionary<NavigationType, IList<NavigationActionEntity>> NavigationActions;
NavigationType
是一个枚举,NavigationActionEntity
是一个映射实体。
我这样尝试过:
HasManyToMany(x => x.NavigationActions).AsEntityMap()
.Table("CarrierNavigationActions");
但这给了我一个例外:
An association from the table CarrierNavigationActions refers to an unmapped
class: System.Collections.Generic.IList`1[[Dal.Entities.NavigationActionEntity]]
Is it possible with Fluent NHibernate to map a property with the following signature?
IDictionary<NavigationType, IList<NavigationActionEntity>> NavigationActions;
NavigationType
is an enum, NavigationActionEntity
is a mapped entity.
I tried it like this:
HasManyToMany(x => x.NavigationActions).AsEntityMap()
.Table("CarrierNavigationActions");
But it is giving me an exception:
An association from the table CarrierNavigationActions refers to an unmapped
class: System.Collections.Generic.IList`1[[Dal.Entities.NavigationActionEntity]]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这里有一个需要跳过的圈
here a hoop to jump through