Subsonic 3 中的复杂类型
我将在大型企业 winform 应用程序中使用 subsonic 3。 我在个人测试中看到的是 subsonic 无法很好地处理复杂类型的引用。 例如,如果我们在 PERSON 对象中有一个 ADDRESS 复杂类型,据我所知,subsonic 刚刚创建了 PERSON 表,并不关心它的 Address 属性!
我想知道如何解决它?
其次,我们的对象具有继承性,subsonic 如何使用每个子类一个表的策略来处理它?
I am going to use subsonic 3 in a large enterprise winform application.
what i saw in my personal tests is that subsonic cannot handle complex type references well.
for example if we have an ADDRESS complex type in PERSON object , as far as i saw subsonic just created the PERSON table and is not caring about the Address property of it !
i was wondering how can i solve it ?
Secondly, we have inheritance in our objects, how subsonic can handle it with table-per-subclass strategy?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
SubSonic 不太适合这些场景。对于复杂类型,您可以编写一个服务/存储库来处理保存和构建这些类型,但没有预先存在的方法将其映射到数据库。
继承计划也是如此。
您可能想要查看功能更全的 O/RM,例如 NHibernate 或 EF。
SubSonic isn't well suited to these scenarios. Regarding complex types you could write a service/repository to handle saving and building these types, but there's no pre-existing way of mapping this to the database.
The same goes for inheritance schemes.
You might want to look at more full-featured O/RM like NHibernate or EF.