mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Update AddPrimaryKeys
This commit is contained in:
parent
321dd3afc8
commit
63c7597b30
@ -298,6 +298,7 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
pkName = "PK_" + pkName.GetNonNegativeHashCodeString();
|
pkName = "PK_" + pkName.GetNonNegativeHashCodeString();
|
||||||
}
|
}
|
||||||
|
columnName = string.Join(",", columnNames.Select(it=>SqlBuilder.GetTranslationColumnName(it)));
|
||||||
string sql = string.Format(this.AddPrimaryKeySql, tableName,pkName, columnName);
|
string sql = string.Format(this.AddPrimaryKeySql, tableName,pkName, columnName);
|
||||||
this.Context.Ado.ExecuteCommand(sql);
|
this.Context.Ado.ExecuteCommand(sql);
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user