FreeSql.Generator 增加神通 DbFirst 生成

This commit is contained in:
28810
2020-06-28 04:34:05 +08:00
parent 3a407694f2
commit afa713e61d
7 changed files with 17 additions and 22 deletions

View File

@ -114,6 +114,9 @@ new Colorful.Formatter("v" + string.Join(".", typeof(ConsoleApp).Assembly.GetNam
-DB ""{12},Driver={KingbaseES 8.2 ODBC Driver ANSI};Server=127.0.0.1;Port=54321;UID=USER2;PWD=123456789;database=数据库""
{12} 人大金仓数据库
-DB ""{13},HOST=192.168.164.10;PORT=2003;DATABASE=OSRDB;USERNAME=SYSDBA;PASSWORD=szoscar55;MAXPOOLSIZE=2""
{13} 神州通用数据库
-Filter Table+View+StoreProcedure
默认生成:表+视图+存储过程
如果不想生成视图和存储过程 -Filter View+StoreProcedure
@ -123,7 +126,7 @@ new Colorful.Formatter("v" + string.Join(".", typeof(ConsoleApp).Assembly.GetNam
-FileName 文件名,默认:{name}.cs
-Output 保存路径,默认为当前 shell 所在目录
{13}
{14}
", Color.SlateGray,
new Colorful.Formatter("使用 FreeSql 快速生成数据库的实体类", Color.SlateGray),
@ -139,6 +142,7 @@ new Colorful.Formatter("Oracle", Color.Yellow),
new Colorful.Formatter("Sqlite", Color.Yellow),
new Colorful.Formatter("Dameng", Color.Yellow),
new Colorful.Formatter("OdbcKingbaseES", Color.Yellow),
new Colorful.Formatter("ShenTong", Color.Yellow),
new Colorful.Formatter("推荐在实体类目录创建 gen.bat双击它重新所有实体类", Color.ForestGreen)
);
wait.Set();
@ -180,6 +184,7 @@ new Colorful.Formatter("推荐在实体类目录创建 gen.bat双击它重新
case "sqlite": ArgsDbType = DataType.Sqlite; break;
case "dameng": ArgsDbType = DataType.Dameng; break;
case "odbckingbasees": ArgsDbType = DataType.OdbcKingbaseES; break;
case "shentong": ArgsDbType = DataType.ShenTong; break;
default: throw new ArgumentException($"-DB 参数错误,不支持的类型:\"{dbargs[0]}\"");
}
ArgsConnectionString = dbargs[1].Trim();