⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Gemstone.Data/Model/SecureTableOperations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@
/// be downloaded locally and decrypted so the proper sort order can be determined.
/// </para>
/// </remarks>
public IAsyncEnumerable<T> QueryRecordsAsync(ClaimsPrincipal principal, string? sortField, bool ascending, int page, int pageSize, [EnumeratorCancellation] CancellationToken cancellationToken, params RecordRestriction?[]? restrictions) =>

Check warning on line 740 in src/Gemstone.Data/Model/SecureTableOperations.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

The EnumeratorCancellationAttribute applied to parameter 'cancellationToken' will have no effect. The attribute is only effective on a parameter of type CancellationToken in an async-iterator method returning IAsyncEnumerable
BaseOperations.QueryRecordsAsync(sortField, ascending, page, pageSize, cancellationToken, (restrictions ?? []).Append(GetClaimRecordRestriction(principal)).ToArray());

/// <summary>
Expand Down Expand Up @@ -949,7 +949,7 @@
{
IEnumerable<string> whereElements = BaseOperations
.GetPrimaryKeyFieldNames(true)
.Select((primaryKeyField, index) => $"{primaryKeyField} = {index}");
.Select((primaryKeyField, index) => $"{primaryKeyField} = {{{index}}}");
RecordRestriction recordRestrict = new RecordRestriction(
string.Join(" AND ", whereElements),
BaseOperations.GetPrimaryKeys(record)
Expand All @@ -968,7 +968,7 @@
{
IEnumerable<string> whereElements = BaseOperations
.GetPrimaryKeyFieldNames(true)
.Select((primaryKeyField, index) => $"{primaryKeyField} = {index}");
.Select((primaryKeyField, index) => $"{primaryKeyField} = {{{index}}}");
RecordRestriction recordRestrict = new RecordRestriction(
string.Join(" AND ", whereElements),
BaseOperations.GetPrimaryKeys(record)
Expand Down
Loading