mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-18 20:08:15 +08:00
update internal code
This commit is contained in:
@ -257,15 +257,15 @@ new Colorful.Formatter("推荐在实体类目录创建 gen.bat,双击它重新
|
||||
RazorEngine.Engine.Razor.Run(razorId, sw, null, model);
|
||||
|
||||
StringBuilder plus = new StringBuilder();
|
||||
plus.AppendLine("//------------------------------------------------------------------------------");
|
||||
plus.AppendLine("// <auto-generated>");
|
||||
plus.AppendLine("// 此代码由工具 FreeSql.Generator 生成。");
|
||||
plus.AppendLine("// 运行时版本:" + Environment.Version.ToString());
|
||||
plus.AppendLine("// Website: https://github.com/2881099/FreeSql");
|
||||
plus.AppendLine("// 对此文件的更改可能会导致不正确的行为,并且如果");
|
||||
plus.AppendLine("// 重新生成代码,这些更改将会丢失。");
|
||||
plus.AppendLine("// </auto-generated>");
|
||||
plus.AppendLine("//------------------------------------------------------------------------------");
|
||||
//plus.AppendLine("//------------------------------------------------------------------------------");
|
||||
//plus.AppendLine("// <auto-generated>");
|
||||
//plus.AppendLine("// 此代码由工具 FreeSql.Generator 生成。");
|
||||
//plus.AppendLine("// 运行时版本:" + Environment.Version.ToString());
|
||||
//plus.AppendLine("// Website: https://github.com/2881099/FreeSql");
|
||||
//plus.AppendLine("// 对此文件的更改可能会导致不正确的行为,并且如果");
|
||||
//plus.AppendLine("// 重新生成代码,这些更改将会丢失。");
|
||||
//plus.AppendLine("// </auto-generated>");
|
||||
//plus.AppendLine("//------------------------------------------------------------------------------");
|
||||
plus.Append(sw.ToString());
|
||||
plus.AppendLine();
|
||||
|
||||
|
@ -50,6 +50,7 @@ switch (gen.fsql.Ado.DataType) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
namespace @gen.NameSpace {
|
||||
|
||||
@if (string.IsNullOrEmpty(gen.table.Comment) == false) {
|
||||
@ -133,6 +134,7 @@ switch (gen.fsql.Ado.DataType) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
namespace @gen.NameSpace {
|
||||
|
||||
@if (string.IsNullOrEmpty(gen.table.Comment) == false) {
|
||||
|
Reference in New Issue
Block a user