commit changes 1

This commit is contained in:
Aneliya Konarcheva
2021-03-07 11:59:17 +02:00
parent b2215cdd8f
commit 982ff0da15
5 changed files with 37 additions and 1 deletions

View File

@@ -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
{

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

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

View File

@@ -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>

View File

@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<TargetFramework>netstandard2.1</TargetFramework>
</PropertyGroup>
<ItemGroup>