Migrator.Net - 从现有数据库创建

发布于 2024-09-26 03:44:02 字数 102 浏览 0 评论 0原文

我们正在考虑开始使用 Migrator.Net,我想知道是否有任何方法可以创建/导入现有模式并创建类文件。手工创建它们需要大量工作,但在我所有的搜索中,我似乎找不到任何可以做到这一点的东西。

We are thinking of starting to use Migrator.Net and I was wondering if there is any way of creating/importing the existing schemas and creating the class files. It would be a lot of work to create them all by hand, but in all my searching I can't seem to find anything that will do this.

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

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

发布评论

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

评论(1

謌踐踏愛綪 2024-10-03 03:44:02

请记住,该项目似乎不再得到维护 ( http://www.mail-archive.com/[电子邮件受保护]/ms g00482.html )。

尽管一位开发人员明确建议在主要版本更改时使用常规 sql 快照,但没有逆向工程选项:

迁移的一种方法是,迁移的使用并不是永远的,您
开发你的数据库,它在迁移的帮助下不断发展,但是一旦
很长一段时间(主要版本?)
您将所有内容刷新到 sql-create 脚本中,然后创建一个新的空白
首先迁移程序集,所以您可能想要使用该方法
无论哪种方式。

( http://www.mail-archive.com/[电子邮件受保护]/msg00190.html )

Keep in mind that the project doesn't seem to be mantained anymore ( http://www.mail-archive.com/[email protected]/msg00482.html ).

There's no reverse engineering option, although what one of devs soundly suggested was to use regular sql snapshots on a major version changes:

one approach to migrations is, that the use of migrations isn't forever, you
develop your database and it evolves with the help of migrations, but once
in a long time (major version?)
you flush everything down into a sql-create script, and create a new blank
migration assembly to start off with, so you might want to use that approach
either way.

( http://www.mail-archive.com/[email protected]/msg00190.html )

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