Relative Content

Tag Archive for c#sql-serverentity-frameworkentity-framework-core

What is the maximum supported compatibility level for EF6?

I’m in the process of migrating old .NET Framework & EF6 WebAPI to .NET 8 and EF8.
Yesterday because of this breaking change, I changed compatibility_level to 130 for our EF6 (Azure SQL) databases: https://learn.microsoft.com/en-us/ef/core/what-is-new/ef-core-8.0/breaking-changes#contains-in-linq-queries-may-stop-working-on-older-sql-server-versions

The difference between Update and Attach (EF Core)

good time everyone.
I have a question regarding these two commands.
When the Attach method exists, where are we forced to use the Update method?
Thank you for explaining the difference between the two