-
-
Notifications
You must be signed in to change notification settings - Fork 85
82 / 73: Update NuGet packages, support for custom ExpressionVisitor #84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
82 / 73: Update NuGet packages, support for custom ExpressionVisitor #84
Conversation
|
If preferred, I can split this pull request into two separate ones: one for the NuGet package updates and another for the ExpressionVisitor changes. |
|
Hello @Catlandor thanks for the PR and your effort. |
|
Hi @romantitov |
|
Thanks @Catlandor. I've merged the PR to a separate branch, but I will need some time to adjust it and prepare a new release with your changes. Thanks for understanding. |
|
Awesome, thank you @romantitov, also for this useful library! |
Updated [MockQueryable.NSubstitute](https://github.com/romantitov/MockQueryable) from 7.0.3 to 8.0.0. <details> <summary>Release notes</summary> _Sourced from [MockQueryable.NSubstitute's releases](https://github.com/romantitov/MockQueryable/releases)._ ## 8.0.0 ## What's Changed #81 Add support to ExecuteDelete and ExecuteUpdate - Thanks @lazaro-ansaldi and @Catlandor #82 Update versions of Moq, NSubstitute and FakeItEasy to newer versions without known vulnerabilities - Thanks @Catlandor #73 Supporting EF.Functions.Like and/or prossibility to provide cusotm ExpressionVisitor - Thanks @Catlandor #66 Not suported with EF7: ExecuteDeleteAsync and ExecuteUpdateAsync - Thanks @Catlandor ## New Contributors * @lazaro-ansaldi made their first contribution in romantitov/MockQueryable#81 * @Catlandor made their first contribution in romantitov/MockQueryable#84 **Full Changelog**: romantitov/MockQueryable@v7.0.3...v8.0.0 ## 7.0.4-beta ## What's Changed * Altered namespace for extension method to revert a breaking change wi… by @StevePy in romantitov/MockQueryable#80 ## New Contributors * @StevePy made their first contribution in romantitov/MockQueryable#80 **Full Changelog**: romantitov/MockQueryable@v7.0.2...7.0.4-beta Commits viewable in [compare view](romantitov/MockQueryable@v7.0.3...v8.0.0). </details> Updated [Roslynator.Analyzers](https://github.com/dotnet/roslynator) from 4.13.1 to 4.14.0. <details> <summary>Release notes</summary> _Sourced from [Roslynator.Analyzers's releases](https://github.com/dotnet/roslynator/releases)._ ## 4.14.0 ### Added - [CLI] Add support for GitLab analyzer reports ([PR](dotnet/roslynator#1633)) ### Fixed - Fix analyzer [RCS1264](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1264) ([PR](dotnet/roslynator#1666)) - Fix analyzer [RCS1229](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1229) ([PR](dotnet/roslynator#1667)) - Fix analyzer [RCS1250](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1250) ([PR](dotnet/roslynator#1652) by @aihnatiuk) - Fix analyzer [RCS1260](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1260) ([PR](dotnet/roslynator#1668)) - Fix analyzer [RCS1105](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1105) ([PR](dotnet/roslynator#1669)) - Fix analyzer [RCS1260](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1260) ([PR](dotnet/roslynator#1672)) ### Changed - Disable analyzer [RCS1036](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1036) by default ([PR](dotnet/roslynator#1671)) - Use analyzer [RCS0063](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS0063) instead ### Removed - Remove legacy config options ([PR](dotnet/roslynator#1304)) Commits viewable in [compare view](dotnet/roslynator@v4.13.1...v4.14.0). </details> Updated [Roslynator.CodeAnalysis.Analyzers](https://github.com/dotnet/roslynator) from 4.13.1 to 4.14.0. <details> <summary>Release notes</summary> _Sourced from [Roslynator.CodeAnalysis.Analyzers's releases](https://github.com/dotnet/roslynator/releases)._ ## 4.14.0 ### Added - [CLI] Add support for GitLab analyzer reports ([PR](dotnet/roslynator#1633)) ### Fixed - Fix analyzer [RCS1264](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1264) ([PR](dotnet/roslynator#1666)) - Fix analyzer [RCS1229](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1229) ([PR](dotnet/roslynator#1667)) - Fix analyzer [RCS1250](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1250) ([PR](dotnet/roslynator#1652) by @aihnatiuk) - Fix analyzer [RCS1260](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1260) ([PR](dotnet/roslynator#1668)) - Fix analyzer [RCS1105](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1105) ([PR](dotnet/roslynator#1669)) - Fix analyzer [RCS1260](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1260) ([PR](dotnet/roslynator#1672)) ### Changed - Disable analyzer [RCS1036](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1036) by default ([PR](dotnet/roslynator#1671)) - Use analyzer [RCS0063](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS0063) instead ### Removed - Remove legacy config options ([PR](dotnet/roslynator#1304)) Commits viewable in [compare view](dotnet/roslynator@v4.13.1...v4.14.0). </details> Updated [Roslynator.Formatting.Analyzers](https://github.com/dotnet/roslynator) from 4.13.1 to 4.14.0. <details> <summary>Release notes</summary> _Sourced from [Roslynator.Formatting.Analyzers's releases](https://github.com/dotnet/roslynator/releases)._ ## 4.14.0 ### Added - [CLI] Add support for GitLab analyzer reports ([PR](dotnet/roslynator#1633)) ### Fixed - Fix analyzer [RCS1264](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1264) ([PR](dotnet/roslynator#1666)) - Fix analyzer [RCS1229](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1229) ([PR](dotnet/roslynator#1667)) - Fix analyzer [RCS1250](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1250) ([PR](dotnet/roslynator#1652) by @aihnatiuk) - Fix analyzer [RCS1260](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1260) ([PR](dotnet/roslynator#1668)) - Fix analyzer [RCS1105](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1105) ([PR](dotnet/roslynator#1669)) - Fix analyzer [RCS1260](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1260) ([PR](dotnet/roslynator#1672)) ### Changed - Disable analyzer [RCS1036](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1036) by default ([PR](dotnet/roslynator#1671)) - Use analyzer [RCS0063](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS0063) instead ### Removed - Remove legacy config options ([PR](dotnet/roslynator#1304)) Commits viewable in [compare view](dotnet/roslynator@v4.13.1...v4.14.0). </details> Updated [xunit.runner.visualstudio](https://github.com/xunit/visualstudio.xunit) from 3.1.2 to 3.1.3. <details> <summary>Release notes</summary> _Sourced from [xunit.runner.visualstudio's releases](https://github.com/xunit/visualstudio.xunit/releases)._ No release notes found for this version range. Commits viewable in [compare view](https://github.com/xunit/visualstudio.xunit/commits). </details> Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
PR Details
ExpressionVisitorDescription
Update all NuGet packages
All NuGet packages have been updated to their latest versions. The most significant change was upgrading the AutoMapper library from 8.0.0 to 15.0.1. The code was adjusted for compatibility with the new version, while maintaining previous behavior.
Upgrade .NET version from 6 to 8
Upgrading to .NET 8 was necessary to ensure compatibility with the latest NuGet packages.
New feature: Support for custom
ExpressionVisitorA new overload for
BuildMockDbSetallows consumers to define and pass a customExpressionVisitor. This enables scenarios such as mocking expressions likeEF.Functions.ILikeand more. The new generic parameterTExpressionVisitormakes this possible.This approach is intentionally flexible, rather than implementing a fake for each
EF.Function, as there are many possible functions and covering every use case is not feasible.Related Issue
Update of packages:
#82
Custom ExpressionVisitor:
#73
How Has This Been Tested
EF.Functions.ILike(seeSampleILikeExpressionVisitor)Checklist