We have just upgraded a project from .NET 6 to .NET 7 and updated the package dependencies to Entity Framework Core.
If you do this you might get this Certificate Chain error:
![](https://visual-software.co.uk/wp-content/uploads/2023/03/image-1024x272.png)
This is because the latest Entity Framework Core requires the server certificate to be trusted. Add the following to your SQL Server connection string:
Trust Server Certificate=true;