This commit is contained in:
sunkaixuan
2019-05-04 17:36:06 +08:00
parent f1b80ecad6
commit f2f00bf181

View File

@@ -102,7 +102,7 @@ namespace SqlSugar
}
public bool Update<T>(Expression<Func<T, T>> columns, Expression<Func<T, bool>> whereExpression) where T : class, new()
{
return this.Context.Updateable<T>().UpdateColumns(columns).Where(whereExpression).ExecuteCommand() > 0;
return this.Context.Updateable<T>(columns).Where(whereExpression).ExecuteCommand() > 0;
}
public bool Delete<T>(T deleteObj) where T : class, new()
{