.Net实体框架:从模型更新数据库 [英] .Net Entity Framework: Update Database From Model

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

问题描述

您好,我有一个问题:我正在使用Visual Studio 2010的实体框架,并且有一个选项从数据库更新模型",您可能想要相反:从模型更新数据库"我也看到有一种从模型生成数据库的选项,但这不是我所需要的.让我们看一个例子:
假设我想将字段从int16更改为int32,如何从模型中执行此操作,然后更新数据库?

提前谢谢.
最好的问候.

Hi fellows, i have a question: I''m working with the Entity Framework of Visual Studio 2010 and there is an option "Update model from database", well y want to do the reverse: "Update database from model" I see too that there is an option to generate database from model, but it is not what i need. Let''s see an example:
Suppose i want to change a field from int16 to int32 how can do that from the model and then update the DB?

Thanks in advance.
Best Regards.

推荐答案

AFAIK当前版本不支持该操作
AFAIK the current version does not support that action


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

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