Skip to content

#98 Additional AllPairs overload, clean up FilterBuilder#124

Open
a-random-steve wants to merge 4 commits intodatastax:mainfrom
a-random-steve:mr/98
Open

#98 Additional AllPairs overload, clean up FilterBuilder#124
a-random-steve wants to merge 4 commits intodatastax:mainfrom
a-random-steve:mr/98

Conversation

@a-random-steve
Copy link
Copy Markdown
Contributor

@a-random-steve a-random-steve commented Apr 2, 2026

Closes #98 and #75.

… how the subclasses worked to eliminate the need for all of the "new" strongly typed variants.
{
return new Filter<T>(fieldName, FilterOperator.Size, size);
}
public TFilter Size(string fieldName, int size)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$size is for collections only

/// <param name="expression">An expression that represents the map field for this filter</param>
/// <param name="pairs">The key-value pairs to check against</param>
/// <returns>The filter</returns>
public TFilter AllPairs<TKey, TValue>(Expression<Func<T, IDictionary<TKey, TValue>>> expression, IEnumerable<KeyValuePair<TKey, TValue>> pairs)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is table-only, right? Or does this have a collection usage?

{
return new Filter<T>(expression.GetMemberNameTree(), FilterOperator.Exists, true);
}
public TFilter Exists<TField>(Expression<Func<T, IEnumerable<TField>>> expression)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exists is collection-only

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

'AllPairs' support for untyped tables

3 participants