Subsonic 3 中的复杂类型

发布于 2024-10-02 10:04:40 字数 233 浏览 0 评论 0原文

我将在大型企业 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

烏雲後面有陽光 2024-10-09 10:04:40

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文