commit changes 1
This commit is contained in:
@@ -3,6 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Data.Entity;
|
||||
using System.Text;
|
||||
using LuminousSales.Data.Model;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace LuminousSales.Data
|
||||
{
|
||||
|
14
LuminousSales/LuminousSales/Data/RoleContext.cs
Normal file
14
LuminousSales/LuminousSales/Data/RoleContext.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Models.Models;
|
||||
|
||||
namespace LuminousSales.Data
|
||||
{
|
||||
public class RoleContext : DbContext
|
||||
{
|
||||
public RoleContext():base("name = RoleContext")
|
||||
{
|
||||
|
||||
}
|
||||
public DbSet<Role> Roles { get; set; }
|
||||
}
|
||||
}
|
16
LuminousSales/LuminousSales/Data/RolesToPermissionContext.cs
Normal file
16
LuminousSales/LuminousSales/Data/RolesToPermissionContext.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace LuminousSales.Data
|
||||
{
|
||||
public class RolesToPermissionContext:DbContext
|
||||
{
|
||||
public RolesToPermissionContext():base("name = RolesToPermissionContext")
|
||||
{
|
||||
|
||||
}
|
||||
public DbSet<Role> Roles { get; set; }
|
||||
}
|
||||
}
|
@@ -7,6 +7,11 @@
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="EntityFramework" Version="6.4.4" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.1.12" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Models\Models.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
@@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard2.0</TargetFramework>
|
||||
<TargetFramework>netstandard2.1</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
Reference in New Issue
Block a user