mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
Add Updateable.IgnoreColumnsIF
This commit is contained in:
parent
8adff53502
commit
1df9b04fa8
@ -169,6 +169,11 @@ namespace SqlSugar
|
||||
this.UpdateBuilder.DbColumnInfoList = this.UpdateBuilder.DbColumnInfoList.Where(it => !ignoreColumns.Contains(it.DbColumnName.ToLower())).ToList();
|
||||
return this;
|
||||
}
|
||||
public IUpdateable<T> IgnoreColumnsIF(bool IsIgnore, Expression<Func<T, object>> columns)
|
||||
{
|
||||
if (IsIgnore) this.IgnoreColumns(columns);
|
||||
return this;
|
||||
}
|
||||
public IUpdateable<T> IgnoreColumns(string[] columns)
|
||||
{
|
||||
if (columns.HasValue())
|
||||
|
@ -80,6 +80,8 @@ namespace SqlSugar
|
||||
|
||||
IUpdateable<T> IgnoreColumns(bool ignoreAllNullColumns, bool isOffIdentity = false, bool ignoreAllDefaultValue = false);
|
||||
IUpdateable<T> IgnoreColumns(Expression<Func<T, object>> columns);
|
||||
IUpdateable<T> IgnoreColumnsIF(bool isIgnore, Expression<Func<T, object>> columns);
|
||||
|
||||
IUpdateable<T> IgnoreColumns(params string[] columns);
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user