Models Class Library Upodated

This commit is contained in:
batgo6o
2021-03-07 11:31:52 +02:00
parent e6e3e64601
commit 199ac62f4b
11 changed files with 154 additions and 1 deletions

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