mo-esmp / DynamicRoleBasedAuthorizationNETCore

Dynamic Role-Based Access Control for ASP.NET Core MVC and Web API
GNU General Public License v3.0
451 stars 94 forks source link

Will it merge `DynamicAuthorization.Mvc.MsSqlServerStore` to like `DynamicAuthorization.Mvc.EFStore` #34

Closed Cricle closed 2 years ago

Cricle commented 2 years ago

Can it export a model given user write in DbContext like DbSet, and use DbContext to access data.

This will probably be Migrations, Custom, Controlable, Scalable.

Cricle commented 2 years ago

Like given interface

public interface IDynamicRoleProvider
{
     DbSet<DynamicRole> DynamicRoles{get;}
}

And inject in service to use.

mo-esmp commented 2 years ago

It is possible, by adding DbSet<RoleAccess> manually or by inheriting DynamicAuthDbContenct that has the DbSet (maybe with some more extra helpers).

Cricle commented 2 years ago

Thanks. I like this project very much!