From e7aa1540bd6b46614103078f87008bf1d418b533 Mon Sep 17 00:00:00 2001 From: xiaochanghai Date: Mon, 15 Apr 2024 11:26:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E8=A1=A8=E7=94=9F=E4=BA=A7Model=E5=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Tiobon.Core.Common/Seed/FrameSeed.cs | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/Tiobon.Core.Common/Seed/FrameSeed.cs b/Tiobon.Core.Common/Seed/FrameSeed.cs index 91046aeb..2323406f 100644 --- a/Tiobon.Core.Common/Seed/FrameSeed.cs +++ b/Tiobon.Core.Common/Seed/FrameSeed.cs @@ -1,10 +1,5 @@ -using Microsoft.AspNetCore.Mvc.ModelBinding; using SqlSugar; -using System.Collections.Generic; -using System.IO; -using System.Linq; using System.Text; -using Tiobon.Core.Model.Models; namespace Tiobon.Core.Common.Seed { @@ -106,7 +101,7 @@ namespace Tiobon.Core.Common.Seed #region 根据数据库表生产Controller层 /// - /// 功能描述:根据数据库表生产Controller层 + /// 根据数据库表生产Controller层 /// /// /// 数据库链接ID @@ -280,7 +275,7 @@ namespace Tiobon.Core.Common.Seed #region 根据数据库表生产Model层 /// - /// 功能描述:根据数据库表生产Model层 + /// 根据数据库表生产Model层 /// /// /// 数据库链接ID @@ -320,7 +315,7 @@ namespace Tiobon.Core.Common.Seed namespace " + strNameSpace + @" { {ClassDescription} - [SugarTable( ""{ClassName}"", """ + ConnId + @""")]" + (blnSerializable ? "\n [Serializable]" : "") + @" + [SugarTable( ""{ClassName}"", """ + ConnId + @"""), Entity(TableCnName = ""{ClassName}"", TableName = ""{ClassName}"")]" + (blnSerializable ? "\n [Serializable]" : "") + @" public class {ClassName}" + (string.IsNullOrEmpty(strInterface) ? "" : (" : " + strInterface)) + @" { public {ClassName}() @@ -610,7 +605,7 @@ namespace " + strNameSpace + @" #region 根据数据库表生产IRepository层 /// - /// 功能描述:根据数据库表生产IRepository层 + /// 根据数据库表生产IRepository层 /// /// /// 数据库链接ID @@ -666,7 +661,7 @@ namespace " + strNameSpace + @" #region 根据数据库表生产IServices层 /// - /// 功能描述:根据数据库表生产IServices层 + /// 根据数据库表生产IServices层 /// /// /// 数据库链接ID @@ -722,7 +717,7 @@ namespace " + strNameSpace + @" #region 根据数据库表生产 Repository 层 /// - /// 功能描述:根据数据库表生产 Repository 层 + /// 根据数据库表生产 Repository 层 /// /// /// 数据库链接ID @@ -783,7 +778,7 @@ namespace " + strNameSpace + @" #region 根据数据库表生产 Services 层 /// - /// 功能描述:根据数据库表生产 Services 层 + /// 根据数据库表生产 Services 层 /// /// /// 数据库链接ID