Professional Documents
Culture Documents
Core 4 App DB Conetxt
Core 4 App DB Conetxt
Models;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
namespace LMSWpfCore3.Context
{
public class ApplicationDbContext : IdentityDbContext
{
}
protected override void OnConfiguring(DbContextOptionsBuilder
optionsBuilder)
{
//
optionsBuilder.UseSqlServer(ConfigurationManager.ConnectionStrings["POSCore3DbEntit
ies"].ConnectionString);
optionsBuilder.UseSqlServer("Server=(localdb)\\mssqllocaldb;Database=LMSCore3Db;Tru
sted_Connection=True;");
}
}
}