mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-02-27 06:03:09 +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\n") : this.UsingTemplate);
|
||||
classText = classText.Replace(DbFirstTemplate.KeyUsing, IsAttribute ? (this.UsingTemplate + "using " + PubConst.AssemblyName + ";\r\n") : this.UsingTemplate);
|
||||
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())
|
||||
@@ -225,7 +225,7 @@ namespace SqlSugar
|
||||
{
|
||||
List<string> joinList = new List<string>();
|
||||
if (item.IsPrimarykey) {
|
||||
joinList.Add("IsPrimarykey=true");
|
||||
joinList.Add("IsPrimaryKey=true");
|
||||
}
|
||||
if (item.IsIdentity)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user