mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-03 20:27:56 +08:00
Synchronization code
This commit is contained in:
parent
443434391e
commit
a703173ac2
@ -572,6 +572,10 @@ namespace SqlSugar
|
||||
}
|
||||
public IUpdateable<T> SetColumns(Expression<Func<T, object>> filedNameExpression, Expression<Func<T, object>> valueExpression)
|
||||
{
|
||||
if (valueExpression == null)
|
||||
{
|
||||
return SetColumns(filedNameExpression,(object)null);
|
||||
}
|
||||
var name = UpdateBuilder.GetExpressionValue(filedNameExpression, ResolveExpressType.FieldSingle).GetString();
|
||||
name = UpdateBuilder.Builder.GetNoTranslationColumnName(name);
|
||||
var value = UpdateBuilder.GetExpressionValue(valueExpression, ResolveExpressType.FieldSingle).GetString();
|
||||
|
Loading…
Reference in New Issue
Block a user