请推荐一种.Net ORM,它支持运行时模式演化

发布于 2024-09-11 05:04:34 字数 706 浏览 2 评论 0原文

所有 RDBMS 都支持 ALTER TABLE 命令,该命令允许管理员向表中添加新列,或更改现有列的类型。

我正在.Net ORM 中寻找这样的运行时模式演化函数。我扫描了一些 ORM 框架,但找不到针对这种演变的直观解决方案。最接近的是 OpenAccess (http://www.telerik.com/products /orm/features.aspx#runtime-changes)。在 OpenAccess 中,您可能有人工字段/类型,但您使用不同的方式来访问它们。换句话说,它们与预定义的属性/类不同。这不是我所期望的,并且与 ALTER Table 所做的不同。

BTW,Versant 对象数据库宣布具有 DYNAMIC DATABASE SCHEMA EVOLUTION 功能 (http: //www.versant.com/en_US/products/objectdatabase/index/)。

如果你找到这样的框架,或者你有一些解决方案。请通知我。

先感谢您。

All RDBMSs support the ALTER TABLE command, which allows administrators to add new columns to tables, or to change the types of existing columns.

I am looking for such a runtime schema evolution function in .Net ORM. I have scanned a few ORM frameworks, and I cannot find an intuitive solution to such an evolution. The closest is OpenAccess (http://www.telerik.com/products/orm/features.aspx#runtime-changes). In OpenAccess, you may have artificial fields /types, but you use a different way to access them. In other words, they are different from pre-defined properties/classes. This is not I expect and is different from what ALTER Table does.

BTW, Versant Object Database announces that it has the function of DYNAMIC DATABASE SCHEMA EVOLUTION (http://www.versant.com/en_US/products/objectdatabase/index/).

If you find such a framework, or you have some solutions. Please notify me.

Thank you in advance.

Ying

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

走走停停 2024-09-18 05:04:35

使用 Telerik OpenAccess ORM,您可以根据您的模型随时更改架构 - 因此,如果您的模型从代表数据库中实际情况的模型更改而来,您只需向数据上下文询问架构更新处理程序即可(通过 API 的入口点)并且它将:
a) 返回代表更新脚本的字符串
b) 您可以随时随地执行返回的脚本

无论如何,请看一下(您可以下载试用版并在试用期间提出支持请求),因为我们也有兴趣进一步开发这项技术。

with Telerik OpenAccess ORM you are able to change the schema on the go, based on your model - so if your model is changed form the one that represents the actual situation in the database, you can just ask the data context for a schema update handler (the entry point via the API) and it will either:
a) return a string representing the update script
b) you can execute the returned script on the go

Anyways, please take a look (you can download a trial and make support requests during the trial period), as we are also interested in developing this technology further.

葬花如无物 2024-09-18 05:04:35

你看过nhibernate吗?

Have you looked at nhibernate?

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