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