Skip to content

Commit

Permalink
#611 ExpandoSupport for BulkMerge.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikependon committed Oct 18, 2020
1 parent ae7aeb5 commit 9b7ebed
Show file tree
Hide file tree
Showing 5 changed files with 840 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,13 +229,18 @@ public static void UpdateBulkOperationIdentityTables(List<BulkOperationIdentityT
/// </summary>
/// <param name="count"></param>
/// <returns></returns>
public static List<ExpandoObject> CreateBulkOperationExpandoObjectIdentityTables(int count)
public static List<ExpandoObject> CreateBulkOperationExpandoObjectIdentityTables(int count,
bool hasId = false)
{
var tables = new List<ExpandoObject>();
for (var i = 0; i < count; i++)
{
var index = i + 1;
var item = new ExpandoObject() as IDictionary<string, object>;
if (hasId)
{
item["Id"] = index;
}
item["RowGuid"] = Guid.NewGuid();
item["ColumnBit"] = true;
item["ColumnDateTime"] = EpocDate.AddDays(index);
Expand Down
Loading

0 comments on commit 9b7ebed

Please sign in to comment.