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
Support for EntityFramework 6 #915
Comments
I was able to patch this issue by adding the net6.0 TFMs to the EF based packages and created a condition which uses the newest EF core packages. With the .Net 6 release coming up in November, we should think about how we're going to handle multiple framework versions.
I think the simplest solution going foreword:
See this doc for more details on the future TFMS, https://github.com/dotnet/designs/blob/main/accepted/2020/net5/net5.md |
Do we know if work when the solution will support .Net 6? It looks like @IvanJosipovic has a good solution. |
Hey, @danielgerlag, any thoughts on the above? I can help with the PR if you recommend the approach. |
This is not a .net 6 issue, this is an EnityFramework 6 backward compatibility issue. For now, you can still use EF5 with .net 6. |
I actually just tested the current published EF libraries with a .net 6 app that uses EF6 and it worked without issue. The error you were seeing was due to prerelease EF libraries. |
Hi @danielgerlag, To give a few more details of the issue I'm having. Environment:
Database: Exception:
Mitigation Let me know if you need more information or you would like me to test anything. |
@Westmorland I am not able to reproduce this issue. FYI, you are using Entity Framework in your project by using the SQL Persistence package. What other packages did you upgrade/downgrade when switching .net versions? |
@danielgerlag, I have a reproduced broken version you can look at here, https://github.com/IvanJosipovic/workflow_core_net6
This comment made me figure out the fix, your app referenced EF6 which made workflow-core use EF6. However, if your app doesn't use EF then it will default to EF5. @Westmorland The workaround for now is to add the following to your csproj |
@IvanJosipovic - Thank you very much, I can confirm the workaround suggested has worked for my solution. |
Describe the bug
.Net Core 6 RC1 has just been released and has go-live support.
When running workflow-core with 3.5.5 with WorkflowCore.Persistence.SqlServer, an exception is thrown:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Workflow core will need to be tweaked to support .Net 6
The text was updated successfully, but these errors were encountered: