Models Class Library Upodated
This commit is contained in:
23
LuminousSales/Models/LuminousContext.cs
Normal file
23
LuminousSales/Models/LuminousContext.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
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; }
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user