edandersen / core-admin

Fully automatic admin site CRUD UI generator for ASP.NET Core and .NET 8
Other
566 stars 107 forks source link

Update CoreAdminSecurityOptions.cs to support setting more than just IgnoreEntityTypes #25

Closed devantler closed 2 years ago

devantler commented 2 years ago

Removed "internal set" as this restricts us from initializing anything other than the IgnoreEntityTypes.

I need to do this which was not possible:

services.AddCoreAdmin(new CoreAdminOptions()
{
    RestrictToRoles = "Admin"
    IgnoreEntityTypes = new List<Type>() { typeof(PersistedGrant), typeof(DeviceFlowCodes) }
});