NHibernate 在单独程序集中子类时的继承映射
假设核心项目有一个基本实体,并且每个插件都可能扩展该基本实体。
解决方案结构:
Application.Core.BaseClass
Application.Module.SubClass (it's a plug in, maybe not available)
有什么方法可以使用 NHibernate 子类来实现此映射吗?
Assume that the core project has a base entity and every plugin maybe extends the base entity.
Solution structure :
Application.Core.BaseClass
Application.Module.SubClass (it's a plug in, maybe not available)
Is any way to implement this mapping using NHibernate subclass?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以添加这样的映射:
然后
您可以查看 具有类似目标的项目。
还可以选择直接调用类模型。
You can add a mapping with like this:
And then
You could take a look at code from a project with similar goals.
There is also the option of directly invoking the class model.