mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-31 15:56:25 +08:00
Add Saveable UpdateWhereColumns
This commit is contained in:
parent
70bfac9a2a
commit
567b267295
@ -173,6 +173,15 @@ namespace SqlSugar
|
||||
return this;
|
||||
}
|
||||
|
||||
public ISaveable<T> UpdateWhereColumns(Expression<Func<T, object>> columns)
|
||||
{
|
||||
LoadUpdateable();
|
||||
if (this.updateable != null)
|
||||
{
|
||||
this.updateable.WhereColumns(columns);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
protected virtual List<string> GetPrimaryKeys()
|
||||
{
|
||||
if (this.Context.IsSystemTablesConfig)
|
||||
@ -197,5 +206,6 @@ namespace SqlSugar
|
||||
updateable = this.Context.Updateable<T>(temp);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -15,6 +15,7 @@ namespace SqlSugar
|
||||
ISaveable<T> InsertIgnoreColumns(Expression<Func<T, object>> columns);
|
||||
ISaveable<T> UpdateColumns(Expression<Func<T, object>> columns);
|
||||
ISaveable<T> UpdateIgnoreColumns(Expression<Func<T, object>> columns);
|
||||
ISaveable<T> UpdateWhereColumns(Expression<Func<T, object>> columns);
|
||||
ISaveable<T> EnableDiffLogEvent(object businessData = null);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user