在“更新模型向导”修改后立即使用自定义脚本更新.edmx文件 [英] Update .edmx file with a custom script right after it was modified by "Update Model Wizard"

查看:68
本文介绍了在“更新模型向导”修改后立即使用自定义脚本更新.edmx文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要制作一个自定义脚本,该脚本在使用"更新模型向导"更新后立即在.edmx文件上执行。工具。通过这种方式,我可以"保存"在基于db模式更新实体模型后,我对存储模型所做的更改。
我该怎么办?

I need to make a custom script which will be executed on a .edmx file right after it was updated with "Update Model Wizard" tool. This way I could be able to "preserve" the changes I made to the storage model after entity model is updated based on a db schema. How do I do it?

推荐答案

Konstantin Tarkus,

Hi Konstantin Tarkus,

欢迎到MSDN论坛。

我担心我们不能这样做,我们唯一能做的就是每次手动更新模型后执行脚本。

I'm afraid we can't do like that, the only thing we can do is executing the script every time after updating the model from database manually.

最好的问候


这篇关于在“更新模型向导”修改后立即使用自定义脚本更新.edmx文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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