mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
Bug SqlServer AddDefaultValue
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user