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

问题描述

如何在数据库中做一些改变后更新.dbml文件。

How to update .dbml file after making some changes in the database.

推荐答案

有更改(后同步与数据库dbml的文件/ DataContext的没有内置方式的除了通过去除再生整个DBML文件中的所有或一个选择的实体和重新拖动,或通过使用sqlmetal由其他答复的)的建议,但也有,要在Visual Studio L2S设计师添加刷新功能。

There's no built-in way to sync the dbml file/datacontext with the database after making changes (besides regenerating the entire dbml file by removing all or a selection of the entities and re-dragging them, or by using sqlmetal as suggested by other replies), but there are third-party tools that add refresh functionality to the Visual Studio L2S designer.

是我的加载项,的的。您可以从下载并获得试用许可证如果你想利用它进行测试的自旋。

One such tool is my add-in, Huagati DBML/EDMX Tools. You can download it from http://www.huagati.com/dbmltools/ and get a trial license if you want to take it for a test spin.

吉姆伍利有一个总结各种LINQ和LINQ到SQL工具在这里:结果

Jim Wooley has a summary various Linq and Linq-to-SQL tools here:
http://www.thinqlinq.com/default/LINQ-Tools.aspx

...和达米恩卫队有L2S工具/资源列表,在这里:结果

...and Damien Guard has a list of tools/resources for L2S here:
http://damieng.com/blog/2009/06/04/linq-to-sql-resources

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

10-19 11:43