Linq = > MyMetal = > SqlMetal Include 自定义(Linq to sql )生成

SqlMetalInclude是一款实用工具,能够帮助用户轻松修改DBML文件,去除不需要的表或视图,并重新命名实体以提高代码可读性。该工具还提供了一个用户界面,使配置过程更加直观简便。
把这个好东西推荐给大家。点击进去后如果发现没有发布版千万别惊讶,作者说他忙,让我们下载源代码就好了,尽管不太方便,但是在源代码中已经有发布版本了。相对一些由发布版但是粗制滥造不同,作者现在这个版本已经非常棒了。以下是引用的codeplex的图:
NOTE: Please download the source code, it has compiled executables in it, I am short on time at the moment, and the source contains all the latest bug fixed

Project Description
SqlMetalInclude lets you simply and quickly modify the DBML file to remove unwanted tables/views from it, as well as being able to rename the entities giving more meaning in the generated code.
There is also a GUI which lets you configure everything, including the SqlMetal config

Screenshots of GUI

Startup screen, config is automatically saved at each step of the wizard.
Exclude mode (also explained in tooltip) controls how new tables/views are handled, in exclude mode, new tables will not be included.
Startup.png

Setup the SqlMetal DBML generation
SqlMetal Config.png

We can now select the tables/views that we want to be included in the final DBML and also rename the collections or entity names
SelectDbo.png

When you hit continue it will run sqlmetalinclude to modify the full dbml file, you can continue once it has been run and no further changes have been made.
SelectDboRun.png

You can now either export a .cmd file and SqlMetalInclude.exe which will regenerate your code file from scratch, so it will infact refresh your DataContext and associated classes to match the database structure.
SaveCode.png

本文转自today4king博客园博客,原文链接:http://www.cnblogs.com/jinzhao/archive/2009/08/01/1536566.html,如需转载请自行联系原作者
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值