[ADD] Added EF Core project for authority db

This commit is contained in:
max
2025-01-27 23:15:23 +01:00
parent c27890a31f
commit e914023c5a
6 changed files with 64 additions and 4 deletions

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