NHibernate / Fluent NHibernate 映射
是否可以绘制以下情况?
- 产品类(当前是一个表)
- 一个帐户类(当前是一个表)
- 一个帐户产品类(当前是一个联接表,但具有与特定产品和帐户相关的附加信息)
我理想中想要的是帐户产品来扩展产品并成为可作为财产产品从帐户中获取。
产品类将单独存在并提供其自己的持久性。
Is it possible to map the following situation?
- A product class (currently a table)
- An account class (currently a table)
- An accountproduct class (currently a join table but with additional information related to a specific product and account)
What I'd ideally like is accountproduct to extend product and to be available from account as a property Products.
The product class would exist seperately and provide it's own peristance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
怎么样:
How about the following: