edmx文件移动... [英] edmx file moving...

查看:47
本文介绍了edmx文件移动...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在vs 2008解决方案中,我必须将edmx文件(实体框架1)从网站的app_code目录移动到同一解决方案的类库项目,输出bin设置为网络应用程序的bin目录。
我已经完成了它并且它可以工作(经过一些安排)但是现在emdx文件和设计文件不是链接的。事实上,我发现了新生成器设计文件而我离开了旧文件。

我怎样才能完善所有这些?留下这样的一切是危险的吗?最好的问候。

Hi,
in a vs 2008 solution i've got to move an edmx file (entity framework 1) from the app_code dir of a website down to a class library project of the same solution with output bin set to the bin dir of the web app.
I've done it and it works (after some arrangements) but now the emdx file and the design files are not linket togheter. Infact I deteled the newly generater design file and i left the old one.

How can I polish all that? Is that dangerous to leave all that like this?
Best Regards.

推荐答案

是的,这看起来有点可疑。我建议删除旧的,并留下新的,应该在edmx文件下,到位。这样,如果EDMX文件发生变化,您的代码也会正确更新。

Yes, this seems a bit dubious. I would suggest deleting the old one and leaving the new one, which should live under the edmx file, in place. That way, if the EDMX file changes, your code will be updated correctly as well.


这篇关于edmx文件移动...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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