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

简介:
把这个好东西推荐给大家。点击进去后如果发现没有发布版千万别惊讶,作者说他忙,让我们下载源代码就好了,尽管不太方便,但是在源代码中已经有发布版本了。相对一些由发布版但是粗制滥造不同,作者现在这个版本已经非常棒了。以下是引用的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,如需转载请自行联系原作者
相关文章
|
5月前
|
SQL XML Java
Mybatis Plus自定义全局SQL注入
Mybatis Plus自定义全局SQL注入
91 0
|
4月前
|
SQL Oracle 关系型数据库
整合Mybatis-Plus高级,Oracle 主键Sequence,Sql 注入器实现自定义全局操作
整合Mybatis-Plus高级,Oracle 主键Sequence,Sql 注入器实现自定义全局操作
94 0
|
1天前
|
SQL 前端开发
基于jeecgboot复杂sql查询的列表自定义列实现
基于jeecgboot复杂sql查询的列表自定义列实现
|
4月前
|
SQL 数据库
在mybatis-plus怎么使用自定义的sql语句
在mybatis-plus怎么使用自定义的sql语句
68 0
|
22天前
|
SQL Oracle 关系型数据库
Oracle的PL/SQL游标自定义异常:数据探险家的“专属警示灯”
【4月更文挑战第19天】Oracle PL/SQL中的游标自定义异常是处理数据异常的有效工具,犹如数据探险家的警示灯。通过声明异常名(如`LOW_SALARY_EXCEPTION`)并在满足特定条件(如薪资低于阈值)时使用`RAISE`抛出异常,能灵活应对复杂业务规则。示例代码展示了如何在游标操作中定义和捕获自定义异常,提升代码可读性和维护性,确保在面对数据挑战时能及时响应。掌握自定义异常,让数据管理更从容。
|
7月前
|
SQL 关系型数据库 MySQL
MyBatis-plus执行自定义SQL
MyBatis-plus执行自定义SQL
114 0
|
3月前
|
SQL 开发框架 .NET
C# Linq SaveChanges()报错 You have an error in your SQL syntex
C# Linq SaveChanges()报错 You have an error in your SQL syntex
11 0
|
4月前
|
SQL XML Java
关于mybatis-plus写自定义方法(自定义sql)
关于mybatis-plus写自定义方法(自定义sql)
86 1
|
5月前
|
SQL 关系型数据库 MySQL
mp自定义sql注入
mp自定义sql注入
28 0
|
7月前
|
SQL 关系型数据库 MySQL
MyBatis-plus配置自定义SQL(执行用户传入SQL)
MyBatis-plus配置自定义SQL(执行用户传入SQL)
105 0