Skip to content

Commit

Permalink
still failing
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeAlhayek committed May 2, 2024
1 parent 5fad68c commit 164b932
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/YesSql.Core/Data/NullableThumbprintFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public static long GetNullableThumbprint(object item)
ArgumentNullException.ThrowIfNull(item);

var builder = GetNullableThumbprintBuilder(item.GetType());

return builder.GetNullableThumbprint(item);
}
}
Expand Down
4 changes: 1 addition & 3 deletions src/YesSql.Core/Services/DefaultQuery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1500,9 +1500,7 @@ async ValueTask<IQuery<T>> IQuery<T>.AllAsync(params Func<IQuery<T>, ValueTask<I
return query;
}

#pragma warning disable CA1859 // Use concrete types when possible for improved performance
private IQuery<T> ComposeQuery(Func<IQuery<T>, IQuery<T>>[] predicates, CompositeNode predicate)
#pragma warning restore CA1859 // Use concrete types when possible for improved performance
private Query<T> ComposeQuery(Func<IQuery<T>, IQuery<T>>[] predicates, CompositeNode predicate)
{
_query._queryState._currentPredicate.Children.Add(predicate);

Expand Down
2 changes: 1 addition & 1 deletion test/YesSql.Tests/CoreTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1498,7 +1498,7 @@ public async Task ShouldQueryWithLike()
Assert.Equal(2, await session.Query<Person, PersonByAge>().Where(x => x.Name.IsLike("%l%")).CountAsync());
Assert.Equal(1, await session.Query<Person, PersonByAge>().Where(x => x.Name.IsNotLike("%B%")).CountAsync());

Assert.Equal(2, await session.Query<Person, PersonByAge>().Where(x => x.Name.Contains("l", StringComparison.Ordinal)).CountAsync());
Assert.Equal(2, await session.Query<Person, PersonByAge>().Where(x => x.Name.Contains('l', StringComparison.Ordinal)).CountAsync());
Assert.Equal(1, await session.Query<Person, PersonByAge>().Where(x => x.Name.NotContains("B")).CountAsync());
}
}
Expand Down

0 comments on commit 164b932

Please sign in to comment.