- 增加 IInsertOrUpdate SetSource 重载方法;

This commit is contained in:
2881099
2023-03-03 16:50:30 +08:00
parent d55e6782d4
commit ea17bf3e70
2 changed files with 11 additions and 0 deletions

View File

@ -118,6 +118,7 @@ namespace FreeSql.Internal.CommonProvider
}
public IInsertOrUpdate<T1> SetSource(T1 source) => this.SetSource(new[] { source });
public IInsertOrUpdate<T1> SetSource(T1 source, Expression<Func<T1, object>> tempPrimarys) => this.SetSource(new[] { source }, tempPrimarys);
public IInsertOrUpdate<T1> SetSource(IEnumerable<T1> source, Expression<Func<T1, object>> tempPrimarys = null)
{
if (source == null || source.Any() == false) return this;