Skip to content

Commit

Permalink
Prepare version 10.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fiseni committed Oct 11, 2024
1 parent 5119e33 commit 98e9048
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ public static IQueryable<T> Like<T>(this IQueryable<T> source, IEnumerable<LikeE
propertySelector.Body,
patternAsExpression);

expr = expr is null ? efLikeExpression : Expression.OrElse(expr, efLikeExpression);
expr = expr is null
? efLikeExpression
: Expression.OrElse(expr, efLikeExpression);
}

return expr is null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,17 @@
<Description>EntityFrameworkCore plugin to Pozitron.QuerySpecification containing EF evaluators.</Description>
<Summary>EntityFrameworkCore plugin to Pozitron.QuerySpecification containing EF evaluators.</Summary>

<Version>10.1.0</Version>
<Version>10.2.0</Version>
<PackageTags>fiseni pozitron query specification efcore</PackageTags>
<PackageReleaseNotes>
v10.2.0
- Added ability to override the specification validator and in-memory evaluator.
- Performance improvements for in-memory Like.
- Refactored repositories
- Removed projection methods from RepositoryBase and IReadRepositoryBase
- Added IProjectionRepository contract defining the ProjectTo APIs.
- Added RepositoryWithMapper. It inherits RepositoryBase and implements IProjectionRepository.

v10.1.0
- Publish a separate symbol package (snupkg).
- Added ToPagedResult extensions.
Expand Down
10 changes: 9 additions & 1 deletion src/QuerySpecification/QuerySpecification.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,17 @@
<Description>Abstract package for building query specifications.</Description>
<Summary>Abstract package for building query specifications.</Summary>

<Version>10.1.0</Version>
<Version>10.2.0</Version>
<PackageTags>fiseni pozitron query specification</PackageTags>
<PackageReleaseNotes>
v10.2.0
- Added ability to override the specification validator and in-memory evaluator.
- Performance improvements for in-memory Like.
- Refactored repositories
- Removed projection methods from RepositoryBase and IReadRepositoryBase
- Added IProjectionRepository contract defining the ProjectTo APIs.
- Added RepositoryWithMapper. It inherits RepositoryBase and implements IProjectionRepository.

v10.1.0
- Publish a separate symbol package (snupkg).
- Added ToPagedResult extensions.
Expand Down
3 changes: 2 additions & 1 deletion src/QuerySpecification/Validators/SpecificationValidator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ public virtual bool IsValid<T>(T entity, Specification<T> specification)
{
foreach (var partialValidator in Validators)
{
if (partialValidator.IsValid(entity, specification) == false) return false;
if (partialValidator.IsValid(entity, specification) == false)
return false;
}

return true;
Expand Down
3 changes: 2 additions & 1 deletion src/QuerySpecification/Validators/WhereValidator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ public bool IsValid<T>(T entity, Specification<T> specification)
{
foreach (var whereExpression in specification.WhereExpressions)
{
if (whereExpression.FilterFunc(entity) == false) return false;
if (whereExpression.FilterFunc(entity) == false)
return false;
}

return true;
Expand Down

0 comments on commit 98e9048

Please sign in to comment.