Microsoft.EntityFrameworkCore
Microsoft.EntityFrameworkCore.SqlServer
Microsoft.Extensions.Configuration.Json
"ConnectionStrings": {
"DefaultConnection": "Server=localhost;Database=sys_setting;User ID=sa;Password=root;Encrypt=True;Trusted_Connection=True;TrustServerCertificate=True;MultipleActiveResultSets=true"
}
public class DemoDbContext : DbContext
{
public DemoDbContext(DbContextOptions dbContextOptions) :