Skip to content

Commit

Permalink
[skyp ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Mimetis committed Jan 18, 2023
1 parent 96753c9 commit 3d8a2fa
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 1,268 deletions.
6 changes: 3 additions & 3 deletions Projects/Dotmim.Sync.Core/Set/SyncRows.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,16 @@ public void Add(SyncRow item)
}

/// <summary>
/// Make a filter on primarykeys
/// Make a filter on primary keys
/// </summary>
public static SyncRow GetRowByPrimaryKeys(SyncRow criteria, IList<SyncRow> rows, SyncTable schemaTable )
{
// Get the primarykeys to get the ordinal
// Get the primary keys to get the ordinal
var primaryKeysColumn = schemaTable.GetPrimaryKeysColumns().ToList();
var criteriaKeysColumn = criteria.SchemaTable.GetPrimaryKeysColumns().ToList();

if (primaryKeysColumn.Count != criteriaKeysColumn.Count)
throw new ArgumentOutOfRangeException($"Can't make a query on primary keys since number of primary keys columns in criterias is not matching the number of primary keys columns in this table");
throw new ArgumentOutOfRangeException($"Can't make a query on primary keys since number of primary keys columns in criteria is not matching the number of primary keys columns in this table");

var filteredRow = rows.FirstOrDefault(itemRow =>
{
Expand Down
Loading

0 comments on commit 3d8a2fa

Please sign in to comment.