28 lines
906 B
C#
28 lines
906 B
C#
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<PurchLocalDbContext> options)
|
|
: base(options) { }
|
|
public virtual DbSet<SystemSettings> SystemSettings { get; set; }
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
{
|
|
base.OnModelCreating(modelBuilder);
|
|
modelBuilder.Entity<SystemSettings>(entity =>
|
|
{
|
|
entity.ToTable("SystemSettings");
|
|
entity.HasNoKey();
|
|
});
|
|
}
|
|
}
|
|
}
|