24 lines
580 B
C#
24 lines
580 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using Models.Models;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace Models
|
|
{
|
|
class LuminousContext : DbContext
|
|
{
|
|
public LuminousContext(): base("name=LuminousContext")
|
|
{
|
|
|
|
}
|
|
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; }
|
|
|
|
}
|
|
}
|