From 73061c1209538d45899d5a35348b76ef4fab5a7f Mon Sep 17 00:00:00 2001 From: wanghao Date: Tue, 19 Mar 2024 16:49:16 +0800 Subject: [PATCH] =?UTF-8?q?perf(ModelFile.template):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E7=94=9F=E6=88=90=E5=AE=9E=E4=BD=93=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DatabasetoEntityclass/Form1.Designer.cs | 4 ++-- DatabasetoEntityclass/Template/ModelFile.template | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/DatabasetoEntityclass/Form1.Designer.cs b/DatabasetoEntityclass/Form1.Designer.cs index f53ef75..0c42575 100644 --- a/DatabasetoEntityclass/Form1.Designer.cs +++ b/DatabasetoEntityclass/Form1.Designer.cs @@ -224,7 +224,7 @@ // txt_database // this.txt_database.FormattingEnabled = true; - this.txt_database.Location = new System.Drawing.Point(188, 13); + this.txt_database.Location = new System.Drawing.Point(187, 13); this.txt_database.Name = "txt_database"; this.txt_database.Size = new System.Drawing.Size(218, 20); this.txt_database.TabIndex = 85; @@ -234,7 +234,7 @@ // databaseLable // this.databaseLable.AutoSize = true; - this.databaseLable.Location = new System.Drawing.Point(141, 17); + this.databaseLable.Location = new System.Drawing.Point(140, 17); this.databaseLable.Name = "databaseLable"; this.databaseLable.Size = new System.Drawing.Size(41, 12); this.databaseLable.TabIndex = 84; diff --git a/DatabasetoEntityclass/Template/ModelFile.template b/DatabasetoEntityclass/Template/ModelFile.template index 00b8ac1..1ddac57 100644 --- a/DatabasetoEntityclass/Template/ModelFile.template +++ b/DatabasetoEntityclass/Template/ModelFile.template @@ -1,5 +1,7 @@ using System; +$if(isGeneratorValidateClass) using FluentValidation; +$end using System.ComponentModel; using NCA_MES_Models.CommonUtils.DB.DBAttribute; //using NCA_MES_Models.CommUtil.DB.DBAttribute;