24 lines
747 B
C#
24 lines
747 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using Models.Models;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace Models
|
|
{
|
|
public class LuminousContext : DbContext
|
|
{
|
|
public DbSet<User> User { get; set; }
|
|
public DbSet<Role> Role { get; set; }
|
|
public DbSet<Permission> Permission { get; set; }
|
|
public DbSet<Product> Product { get; set; }
|
|
public DbSet<Deal> Deal{ get; set; }
|
|
public DbSet<Stock> Stock { get; set; }
|
|
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
|
{
|
|
optionsBuilder.UseSqlServer(
|
|
@"Server=(localdb)\mssqllocaldb;Database=LuminousSales;Integrated Security=True");
|
|
}
|
|
}
|
|
}
|