如何在 Automapping Fluent NHibernate 中使用 IUserType?
我有一个实现 IUserType 的自定义类型。 我的域类之一具有此自定义类型的属性。
现在我想让自动映射与这个域一起工作,它说“ 表 xyz 中的关联引用未映射的类:PersianDate”
PersianDate 是我的自定义类型。 我应该如何告诉自动映射这不是一个引用,它是一个适合字符串列的自定义用户类型!
我搜索了互联网上的所有内容,我认为这里有问题,
请你帮我修复它
i have a custom type that implemented IUserType.
one of my domain classes have a property of this custom type.
now i want to make Automapping work with this domain, it says that "
An association from the table xyz refers to an unmapped class: PersianDate"
PersianDate is my custom type .
how should i tell to automapping that this is not a reference, it is a custom user type that is fitted into a string column !!!
i searched everything that was in the internet , i think there is something wrong here
would you please help me to fix it
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了答案在这里,我应该在自动映射约定中使用 UserTypeConvention
i found the answer Here, i should use a UserTypeConvention in Automapping conventions