Files
luminous-sales/LuminousSales/Models/LuminousContext.cs
2021-03-07 11:31:52 +02:00

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; }
}
}