I'm getting the exception
ArgumentException: Keyword not supported: 'persistsecurity info'
when attempting to read to the database after upgrading from .NET Core 1.1 to .NET Core 2.0. Project is using .NET Core MVC Framework with EF Core.
Appsettings.json
"ConnectionStrings": {
"DBConnection": "Server=tcp: server.address, 1433;Initial Catalog=SmartDB;PersistSecurity Info=False;User ID=username;Password=password;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;"
}
Startup.cs
services.AddDbContext<ApplicationDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SmartDBConnection")));