Ado.net实体数据模型数据库第一种方法更新问题。 [英] Ado.net Entity Data model Database first approach updation issues.
问题描述
大家好,
我正在使用ado.net实体数据模型为我的应用程序提供MVC数据库第一种方法。现在的问题是每当我尝试通过以下步骤更新我的实体模型时
1 - 右键单击模型设计师
2-从数据库更新模型
3-添加表格
4-完成
新实体(表格)出现在设计师的屏幕上但是实体没有如果我更新任何字段并刷新模型,则会发生相同的行为,它将更新设计者而不是原始实体。然后我必须删除模型并从数据库重新生成它然后它工作正常,但这不是我的问题的解决方案。
请尽快给我解决方案。
提前谢谢。
1 - 正确点击 模型设计师
2- update model 来自 数据库
3- 添加 tables
4-完成
------------------------ ----
完成上述步骤后,
5。右键单击模型设计师
6.添加代码生成项目
- >选择Visual c# - >添加新的Model.tt fie(EF 5.x DBContext Generator)
- >添加
hi all,
i am using ado.net entity data model for my application with MVC database first approach. Now the issue is that whenever i tried to update my entity model by following these steps
1 - right click on model designer
2- update model from database
3- Add tables
4- Finish
The new entity (table) comes on the designer screen but the entity doesn't comes in model.Or if just i updates any field and refresh the model the same behaviour occurs, it will update the designer not the originol entity. Then i have to delete the model and re-generate it from database then it works fine, but this is not the solution of my problem .
Kindly give me the solution ASAP.
thanks in advance.
1 - right click on model designer 2- update model from database 3- Add tables 4- Finish
----------------------------
After doing above steps,
5 . Right click on Model designer
6. Add code generation item
-> Select Visual c# -> Add New Model.tt fie (EF 5.x DBContext Generator)
-> Add
这篇关于Ado.net实体数据模型数据库第一种方法更新问题。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!