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

SQL Server Persitance Provider not working with EF Core 5 #694

Closed
digitalsigi opened this issue Nov 12, 2020 · 3 comments · Fixed by #742
Closed

SQL Server Persitance Provider not working with EF Core 5 #694

digitalsigi opened this issue Nov 12, 2020 · 3 comments · Fixed by #742

Comments

@digitalsigi
Copy link

I had to migrate to net5.0 I found, that PropertyBuilder no longer contains a definition for UseSqlServerIdentityColumn. See also MS Docs

Severity Code Description Project File Line Suppression State
Error CS1061 'PropertyBuilder' does not contain a definition for 'UseSqlServerIdentityColumn' and no accessible extension method 'UseSqlServerIdentityColumn' accepting a first argument of type 'PropertyBuilder' could be found (are you missing a using directive or an assembly reference?) WorkflowCore.Persistence.SqlServer C:\GitHub\Workflow\workflow-core\src\providers\WorkflowCore.Persistence.SqlServer\SqlServerContext.cs 34 Active

@danielgerlag
Copy link
Owner

That's not a .net5 issue, that's an EF Core 5 issue. You can still use EF Core 3 with .net5.

@olegkap
Copy link

olegkap commented Dec 18, 2020

I think the problem, like in my case, when I use .net5 and EF Core 5 in my application and then I add WorkflowCore.Persistence.SqlServer that has dependency on EF Core 3 but since I already have EF Core 5, it choose that and then error occurs.
Perhaps the solution might b e to create new WorkflowCore.Persistence.SqlServer assembly that would be specific for EF Core 5.
Maybe something like WorkflowCore.Persistence.SqlServer.EF5 ?

@fusyd
Copy link
Contributor

fusyd commented Jan 6, 2021

@danielgerlag it looks kinda same with #413
UseSqlServerIdentityColumn was deprecated and replaced by UseIdentityColumn from efcore 3.X, while SqlServer Persistence Provider depends on efcore 3.1.2. I see no problem using UseIdentityColumn() instead of UseSqlServerIdentityColumn() in SqlServerContext?

@danielgerlag danielgerlag changed the title SQL Server Persitance Provider not working with net5.0 SQL Server Persitance Provider not working with EF Core 5 Jan 9, 2021
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 a pull request may close this issue.

4 participants