From 5d55f56da877254ccc102f4774917f84d0a6e699 Mon Sep 17 00:00:00 2001 From: xiaochanghai Date: Tue, 14 May 2024 11:36:39 +0800 Subject: [PATCH] Create_Model_ClassFileByDBTalbe --- Tiobon.Core.Common/Seed/FrameSeed.cs | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/Tiobon.Core.Common/Seed/FrameSeed.cs b/Tiobon.Core.Common/Seed/FrameSeed.cs index c4ba7f92..abd9941a 100644 --- a/Tiobon.Core.Common/Seed/FrameSeed.cs +++ b/Tiobon.Core.Common/Seed/FrameSeed.cs @@ -751,16 +751,25 @@ namespace " + strNameSpace + @" build.Append("*└──────────────────────────────────┘\r\n"); build.Append("*/ \r\n"); build.Append("\r\n"); - build.Append("namespace Tiobon.Core.Model.Models\r\n"); + build.Append("namespace Tiobon.Core.Model.Models;\r\n"); + build.Append("\r\n"); + build.Append("/// \r\n"); + build.Append("/// " + TableCnName + "(Dto.View)\r\n"); + build.Append("/// \r\n"); + build.Append("public class " + tableName + "Dto : " + tableName + "\r\n"); build.Append("{\r\n"); + + build.Append("/// \r\n"); + build.Append("/// 创建信息\r\n"); + build.Append("/// \r\n"); + build.Append("public string CreateDataInfo { get; set; }\r\n"); build.Append("\r\n"); - build.Append(" /// \r\n"); - build.Append(" /// " + TableCnName + "(Dto.View)\r\n"); - build.Append(" /// \r\n"); - build.Append(" public class " + tableName + "Dto : " + tableName + "\r\n"); - build.Append(" {\r\n"); - build.Append(" }\r\n"); + build.Append("/// \r\n"); + build.Append("/// 修改信息\r\n"); + build.Append("/// \r\n"); + build.Append("public string UpdateDataInfo { get; set; }\r\n"); + build.Append("}\r\n"); ls.Add(tableName + ".Dto.View", build.ToString());