D
D
DD-var2020-09-21 11:45:06
ASP.NET
DD-var, 2020-09-21 11:45:06

How to add a new asp.net role?

I have an AddRoles controller. and a table with roles from Identity. how to add new roles to this table?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korotenko, 2020-09-21
@firedragon

For good, in the seed method, you prescribe all the roles, the default admin and his password, and a bunch of other parameters. Another option is to create a method to check the role at application startup. Well or it is stupid to interpose values ​​in . Choose any

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question