[ADD] Added EF Core project for authority db
This commit is contained in:
12
DotBased.AspNet.Authority.EFCore/AuthorityContext.cs
Normal file
12
DotBased.AspNet.Authority.EFCore/AuthorityContext.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using DotBased.AspNet.Authority.Models.Authority;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace DotBased.AspNet.Authority.EFCore;
|
||||
|
||||
public class AuthorityContext : DbContext
|
||||
{
|
||||
public DbSet<AuthorityAttribute> Attributes { get; set; }
|
||||
public DbSet<AuthorityGroup> Groups { get; set; }
|
||||
public DbSet<AuthorityRole> Roles { get; set; }
|
||||
public DbSet<AuthorityUser> Users { get; set; }
|
||||
}
|
Reference in New Issue
Block a user