linq dbml文件 [英] linq dbml file

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

问题描述

你好.

我在我的网站上使用linq.我有一个dbml文件,已从服务器资源管理器中删除该表,该文件必须在该项目中使用.

每当我更改表的结构时,例如列的数据类型,表的列名.它不会反映在dbml文件中.我必须再次从dbml文件中删除该表,然后向其中添加新表.

请告诉我有没有办法,我不必做这个事情.否则它将自动执行.

请回答...

hello.

I am using linq in my website . i have a dbml file on which i have drop the table from the server explorer which i have to used in the project.

whenever i changed the structure of the table like datatype of column,name of the column of the table. it will not reflect in the dbml files. i have to again delete that table from the dbml file and add new one to it.

Please tell me is there any way , that i have not to do this thing. or it will do automatically.

Please Answer...

推荐答案

以下链接将非常有用...


http://social.msdn.microsoft.com /Forums/zh-CN/linqprojectgeneral/thread/f032d242-6dfa-4a99-8368-b3a0e3393679/ [ http: //linqinaction.net/blogs/roller/archive/2008/09/22/how-to-update-a-dbml-file-whenever-the-db-changes.aspx [ http://social.msdn.microsoft.com/论坛/en-US/linqtosql/thread/8d52e150-4dbe-4acc-a8ab-4723e06b30db [
Following links will be useful to do that...


http://social.msdn.microsoft.com/Forums/en-US/linqprojectgeneral/thread/f032d242-6dfa-4a99-8368-b3a0e3393679/[^]

http://linqinaction.net/blogs/roller/archive/2008/09/22/how-to-update-a-dbml-file-whenever-the-db-changes.aspx[^]

http://social.msdn.microsoft.com/Forums/en-US/linqtosql/thread/8d52e150-4dbe-4acc-a8ab-4723e06b30db[^]

There are add-on also available in vs 2008 to do that, refer above links.

Hope this will help!


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

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