Skip to content

Commit 16d4f72

Browse files
committed
feat: general improvements and minor bugs
1 parent 05993ac commit 16d4f72

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

src/WebExpress.WebIndex/Queries/IQuery.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,22 @@ public interface IQuery<TIndexItem>
9191
/// </returns>
9292
IQuery<TIndexItem> WhereEquals(Expression<Func<TIndexItem, string>> selector, string value);
9393

94+
/// <summary>
95+
/// Filters the query to include only items where the specified string property
96+
/// equals the given value.
97+
/// </summary>
98+
/// <param name="selector">
99+
/// An expression that selects the string property of the index item to compare.
100+
/// </param>
101+
/// <param name="value">
102+
/// The value to compare against the selected property. Can be null to match items
103+
/// with a null property value.
104+
/// </param>
105+
/// <returns>
106+
/// A query that returns items where the selected property equals the specified value.
107+
/// </returns>
108+
IQuery<TIndexItem> WhereEquals(Expression<Func<TIndexItem, Guid>> selector, Guid value);
109+
94110
/// <summary>
95111
/// Filters the query to include only items where the specified string property equals
96112
/// the given value, using a case-insensitive comparison.

0 commit comments

Comments
 (0)