mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 10:08:19 +08:00
Update oracle CodeFirst many primary key
This commit is contained in:
@@ -571,7 +571,8 @@ WHERE table_name = '"+tableName+"'");
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
this.Context.DbMaintenance.AddPrimaryKey(tableName, string.Join(",", pkColumns.Select(it=> this.SqlBuilder.GetTranslationColumnName(it.DbColumnName)).ToArray()));
|
var addItems = pkColumns.Select(it => it.DbColumnName).ToArray();
|
||||||
|
this.Context.DbMaintenance.AddPrimaryKeys(tableName, addItems);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user