mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-16 04:59:34 +08:00
Bug SqlServer AddDefaultValue
This commit is contained in:
parent
b3cd1c30a5
commit
fc46c88984
@ -413,6 +413,8 @@ namespace SqlSugar
|
||||
{
|
||||
template = template.Replace("'{2}'", "{2}");
|
||||
}
|
||||
tableName=SqlBuilder.GetTranslationTableName(tableName);
|
||||
columnName = SqlBuilder.GetTranslationTableName(columnName);
|
||||
string sql = string.Format(template, tableName, columnName, defaultValue);
|
||||
this.Context.Ado.ExecuteCommand(sql);
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user