如何使用 Subsonic 迁移来迁移现有数据?
我观看了 http://www.subsonicproject.com/docs/Using_SimpleRepository 截屏视频,但我我想知道...如何迁移现有数据?假设您决定将 Name 属性拆分为 FirstName 和 LastName。你如何在亚音速中做到这一点?
I watched the http://www.subsonicproject.com/docs/Using_SimpleRepository screencast, but I am left wondering... how do you migrate existing data? Assume you decided to split a Name property into a FirstName and LastName. How do you do this in Subsonic?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要手动执行数据迁移。有多种选项可供您选择:
You need to implement the data migration manually. There are several options you can choose from:
SubSonic 不会为您执行此操作,您需要自己编写数据迁移代码/sql。您还应该注意,迁移并非设计用于在实时环境中使用。
SubSonic won't do this for you, you'll need to write data migration code/sql yourself. Also you should be aware that the migrations are not designed to be used in a live environment.