Get list of roles in asp net core

  Рет қаралды 69,893

kudvenkat

kudvenkat

Күн бұрын

Пікірлер: 48
@janeymers7154
@janeymers7154 4 жыл бұрын
Awesome man! Clearly represented and learning a few tricks along the way. Since the Microsoft documentation on how to properly make use of the inbuilt Identity Models is kinda lacking im happy i found your nice tutorial. Thank you!
@adnanmohamed6517
@adnanmohamed6517 3 жыл бұрын
Microsoft's documentation is not only "kinda lacking" but also kinda frustratingly hard to learn from. (Maybe they designed it for experienced developers)
@code8180
@code8180 4 жыл бұрын
Thank you so much for this playlist! You´re clearing many doubts i had! Thank you Sir!
@MikeS-yg7bv
@MikeS-yg7bv 5 жыл бұрын
Amazing as always !!! Thank you Venkat.
@Olegcowboyoleg
@Olegcowboyoleg Жыл бұрын
You are the BEST!
@adnanmohamed6517
@adnanmohamed6517 3 жыл бұрын
Thanks. You're explanation is so clear and helpful :)
@dotalord
@dotalord 5 жыл бұрын
This channel is very helpful
@naodagere8210
@naodagere8210 4 жыл бұрын
Great. Thank you as always.
@davidyungrise4442
@davidyungrise4442 5 жыл бұрын
First thanks for the hundreds of hours you spend to teach us! How could we prevent that not everyone should have the possibility to create a role?
@imikhan83
@imikhan83 5 жыл бұрын
by applying authorize attribute on the Manage Roles Controller. e.g [Authorize(Roles = "Super Admin")]. it will only allow super admin to create, edit or delete the role. Also, you can use policy for this purpose
@davidyungrise4442
@davidyungrise4442 5 жыл бұрын
@@imikhan83 Thanks
@Csharp-video-tutorialsBlogspot
@Csharp-video-tutorialsBlogspot 5 жыл бұрын
Great Question David. As @imi said we use Authorize attribute. We will discuss how we could use role based authorization to control who can and cannot create roles in detail in our upcoming videos. Please stay tuned.
@davidyungrise4442
@davidyungrise4442 5 жыл бұрын
@@Csharp-video-tutorialsBlogspot Thanks, and thanks again for your beautiful lectures!
@foxlatinomx
@foxlatinomx 5 жыл бұрын
Pretty nice and easey as allways, Thak's man.
@alihameed2457
@alihameed2457 5 жыл бұрын
Sir, kindly do explain one more point, if permissions should be granted to roles or they can be granted to an individual user also. Thank You To Legend Sir Venkat.
@imikhan83
@imikhan83 5 жыл бұрын
it depends upon the scenarios.
@Csharp-video-tutorialsBlogspot
@Csharp-video-tutorialsBlogspot 5 жыл бұрын
Sure Ali - We will discuss in our upcoming videos.
@alihameed2457
@alihameed2457 5 жыл бұрын
@@Csharp-video-tutorialsBlogspot Hope so sir. Thank you,
@sakthivel-lc9ni
@sakthivel-lc9ni 5 жыл бұрын
Good explanation sir..
@lifetraveler8008
@lifetraveler8008 4 жыл бұрын
why for the buttons we are using instead of normal ? . When i use , the button does not work
@menakasattmann5335
@menakasattmann5335 5 жыл бұрын
so perfect. Thanks a lot
@osmansiddik2597
@osmansiddik2597 4 жыл бұрын
I have a problem adding IdentityRole to IEnumerable type or namespace is could not found???
@meetshrivastava197
@meetshrivastava197 4 жыл бұрын
Use this:- IEnumerable
@cameronjordan897
@cameronjordan897 4 жыл бұрын
@@meetshrivastava197 thank you brother
@Christian-tr9jn
@Christian-tr9jn 4 жыл бұрын
@@meetshrivastava197 Had a same problem. This worked, thank you!
@senolkurt7864
@senolkurt7864 5 жыл бұрын
How can "Role name 'Admin' is already taken" validation error be displayed in another language?
@get_ready
@get_ready 5 жыл бұрын
Yeah I was also wandering about the localization possibilities in ASP NET. But I think its easy to google something on this.
@Time21
@Time21 5 жыл бұрын
i can not import IdentityRole. It say the type or namespace is missing. how to fix that?
@Time21
@Time21 5 жыл бұрын
figured it out....I had to add to the view @using Microsoft.AspNetCore.Identity;
@Csharp-video-tutorialsBlogspot
@Csharp-video-tutorialsBlogspot 5 жыл бұрын
Hello Nick. Quick tip here. On the red squiggly line if you press CTRL + Period (.) keys simultaneously visual studio will let you know the missing namespace and you can then simply press the ENTER key which will automatically include the required using. Hope this tip helps.
@santoshdevkota1959
@santoshdevkota1959 5 жыл бұрын
Hey I went through the same error. For this open Start.cs..... make sure services.AddIdentity..........You have to add IdentityRole.
@davidespada01
@davidespada01 5 жыл бұрын
thank you 😁
@phillipmiller4642
@phillipmiller4642 4 жыл бұрын
i get error saying i have missing directive please help
@johnroygeralde7325
@johnroygeralde7325 3 жыл бұрын
I solved the problem by replacing @model IEnumerable WITH @model IEnumerable
@farzaibsheikh9764
@farzaibsheikh9764 3 жыл бұрын
you are a time saver man thanks
@damianpiotrowski6337
@damianpiotrowski6337 2 жыл бұрын
Or you can add @using Microsoft.AspNetCore.Identity into _Viewimports.cshtml so you don't need to add this long lines everytime you need this library Same with others, saves time and makes files less flooded with garbage
@AbdulRafay-wy3ve
@AbdulRafay-wy3ve 2 жыл бұрын
Thanks Bro ❤️
@meetshrivastava197
@meetshrivastava197 4 жыл бұрын
Sir let me know how to search, sort and filter all
@dotalord
@dotalord 5 жыл бұрын
Plz make videos on generic repository service using dapper with dependency injection
@ivandrofly
@ivandrofly 5 жыл бұрын
Sir where can I get the source code?
@MikeS-yg7bv
@MikeS-yg7bv 5 жыл бұрын
You can start step by step from the beggining of this series course and you will have your code. Venkat has a GREAT explaination , you will have no prob.
@ivandrofly
@ivandrofly 5 жыл бұрын
@@MikeS-yg7bv it's not mandatory to start from the beginning if you already have very solid understanding of asp.net core...
@Csharp-video-tutorialsBlogspot
@Csharp-video-tutorialsBlogspot 5 жыл бұрын
Hello Ivandro - You can find the source code on our blog at the following link. Hope this helps. csharp-video-tutorials.blogspot.com/2019/01/aspnet-core-tutorial-for-beginners.html
@MmMm-tg5mq
@MmMm-tg5mq 5 жыл бұрын
thanks
@justshukri9407
@justshukri9407 2 жыл бұрын
You can just put that view model in the model instead of viewmodel
@ball14886
@ball14886 5 жыл бұрын
Hen Hao!!!
@ethanbarca
@ethanbarca 4 жыл бұрын
IL King int
Edit role in asp net core
18:27
kudvenkat
Рет қаралды 69 М.
Add or remove users from role in asp net core
24:30
kudvenkat
Рет қаралды 85 М.
-5+3은 뭔가요? 📚 #shorts
0:19
5 분 Tricks
Рет қаралды 13 МЛН
Непосредственно Каха: сумка
0:53
К-Media
Рет қаралды 12 МЛН
Creating roles in asp net core
12:20
kudvenkat
Рет қаралды 134 М.
How to use Middleware in ASP.NET Core (2 ways of implementing middleware)
17:59
ASP.NET User Roles - Create and Assign Roles for AUTHORIZATION!
19:45
tutorialsEU - C#
Рет қаралды 89 М.
How to Get Users And Roles in a Single Query - ASP.NET Core MVC
8:40
Programming with Felipe Gavilan
Рет қаралды 7 М.
Brutally honest advice for new .NET Web Developers
7:19
Ed Andersen
Рет қаралды 314 М.
Edit identity user in asp net core
17:14
kudvenkat
Рет қаралды 53 М.
ASP.NET Core Crash Course - C# App in One Hour
1:00:44
freeCodeCamp.org
Рет қаралды 1,6 МЛН
Authorization and Authentication with roles in Asp.net core mvc
26:26