I have written a very simple test API in .net core 3.1. I've almost got it working, but I just can't seem to get past this "SQLServerException: Login failed for user" migration problem at update-database.
The add-migration command is working properly and the migration file was created. I created a simple database StudentData, but was unable to connect to the database. I am using SSMS 18 on Win 10.
"ConnectionStrings": {
"DBString": "Data Source=PUNIT;Initial Catalog=StudentData;Integrated Security=True;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False" }
Context File
public class DContext : DbContext
{
public DContext(DbContextOptions<DContext> options) : base(options)
{
}
public DbSet<Student> Student { get; set; }
public DbSet<DictionaryExa> DictionaryExa { get; set; }
}