Skip to content

Commit

Permalink
单实体Upsert不能给columns添加默认值,否则会跟option参数的重载冲突。
Browse files Browse the repository at this point in the history
  • Loading branch information
nnhy committed Jan 15, 2025
1 parent d63e91f commit 9dcd39a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion XCode/Entity/EntityExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -951,7 +951,7 @@ public static Int32 BatchUpsert<T>(this IEnumerable<T> list, BatchOption? option
/// do update success =2次(insert 1次+update 1次),
/// 简单来说:如果Insert 成功则返回1,如果需要执行的是update 则返回2,
/// </returns>
public static Int32 Upsert(this IEntity entity, IDataColumn[]? columns = null, ICollection<String>? updateColumns = null, ICollection<String>? addColumns = null, IEntitySession? session = null)
public static Int32 Upsert(this IEntity entity, IDataColumn[]? columns, ICollection<String>? updateColumns = null, ICollection<String>? addColumns = null, IEntitySession? session = null)
{
var option = new BatchOption(columns, updateColumns, addColumns);
return Upsert(entity, option, session);
Expand Down

0 comments on commit 9dcd39a

Please sign in to comment.