mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-02-26 05:32:53 +08:00
-
This commit is contained in:
@@ -147,7 +147,7 @@ namespace SqlSugar
|
||||
classText = classText.Replace(DbFirstTemplate.KeyClassName, className);
|
||||
classText = classText.Replace(DbFirstTemplate.KeyNamespace, this.Namespace);
|
||||
classText = classText.Replace(DbFirstTemplate.KeyUsing, IsAttribute ? (this.UsingTemplate + "using " + PubConst.AssemblyName + "\r\t") : this.UsingTemplate);
|
||||
classText = classText.Replace(DbFirstTemplate.KeyClassDescription, tableInfo.Description);
|
||||
classText = classText.Replace(DbFirstTemplate.KeyClassDescription,DbFirstTemplate.ClassDescriptionTemplate.Replace(DbFirstTemplate.KeyClassDescription, tableInfo.Description+"\r\n"));
|
||||
classText = classText.Replace(DbFirstTemplate.KeySugarTable, IsAttribute ? string.Format(DbFirstTemplate.ValueSugarTable, tableInfo.Name) : null);
|
||||
if (columns.IsValuable())
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace SqlSugar
|
||||
public static string ClassTemplate = "{using}\r\n" +
|
||||
"namespace {Namespace}\r\n" +
|
||||
"{\r\n" +
|
||||
"{ClassDescription}\r\n{SugarTable}\r\n" +
|
||||
"{ClassDescription}{SugarTable}\r\n" +
|
||||
ClassSpace+"public class {ClassName}\r\n" +
|
||||
ClassSpace + "{\r\n" +
|
||||
PropertySpace + "public {ClassName}(){\r\n" +
|
||||
@@ -23,7 +23,7 @@ namespace SqlSugar
|
||||
public static string ClassDescriptionTemplate =
|
||||
ClassSpace + "///<summary>\r\n" +
|
||||
ClassSpace + "///{ClassDescription}" +
|
||||
ClassSpace + "/// </summary>\r\n";
|
||||
ClassSpace + "///</summary>";
|
||||
|
||||
public static string PropertyTemplate = PropertySpace + "{SugarColumn}\r\n" +
|
||||
PropertySpace + "public {PropertyType} {PropertyName} {get;set;}\r\n";
|
||||
|
||||
Reference in New Issue
Block a user