从模型更新数据库 - 实体框架 [英] Update database from model - Entity Framework

查看:21
本文介绍了从模型更新数据库 - 实体框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以以任何方式仅从实体模型更新数据库架构..?使数据库中的所有信息都留在数据库中?当你从模型生成数据库时,信息会丢失.我在 SQL Azure 上工作,我还没有找到任何工具来以适当的方式管理 SQL Azure 数据库中的表和关系.如果它会很好可以由实体框架设计者完成.

Is it possible in any way to just update the database schema from entity model..? So that all the information in the database stays in the database? When you generate database from model the information will get lost.. I work against SQL Azure, and I have not found any tool to manage the tables and realations in the SQL Azure database in a proper way.. It would be soo nice if it could be done by the Entity Framework designer.

推荐答案

我认为这将在下一个 EF 版本中解决(从实体框架的角度来看).从天蓝色的角度来看,您可以使用 SQL Azure 迁移向导.

I think this will be resolved (from an entity framework point of view) in the next EF release. From an azure point of view you can use SQL Azure Migration Wizard.

这篇关于从模型更新数据库 - 实体框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆