using CPRNIMS.Infrastructure.Entities.LocalDb.NonInvent; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CPRNIMS.Infrastructure.Database { public class PurchLocalDbContext : IdentityDbContext { public PurchLocalDbContext(DbContextOptions options) : base(options) { } public virtual DbSet SystemSettings { get; set; } protected override void OnModelCreating(ModelBuilder modelBuilder) { base.OnModelCreating(modelBuilder); modelBuilder.Entity(entity => { entity.ToTable("SystemSettings"); entity.HasNoKey(); }); } } }