Skip to content
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

Define and use constants based on EF Core version, not dotnet one #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Akridian
Copy link

@Akridian Akridian commented Feb 11, 2025

EF Core 9 can be used with dotnet 8 (as we do in our projects). And I believe EF Core 8 is suitable for dotnet 9.

Current configuration leads to incorrect behaviour when EntityFrameworkCore.UseRowNumberForPaging is used with dotnet 8 and EF Core 9.

This PR introduces new properties and compilation constants. With them use can publish two version of the package: one for EF Core 8 and the other for EF Core 9.

According to docs -Properties UseEfCore8=false -Properties UseEfCore9=true should do it. Just flip around boolean flags.

I also made Version property dependant on those flags, but it is just a suggestion.

@Akridian Akridian closed this Feb 11, 2025
@Akridian Akridian changed the title Заменить константы версии dotnet на новые, зависящие от версии EF Core Define and use constants based on EF Core version, not dotnet one Feb 11, 2025
@Akridian Akridian reopened this Feb 11, 2025
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.

1 participant