you probably dont care but if you are bored like me atm then you can stream pretty much all of the new movies and series on instaflixxer. Have been streaming with my gf during the lockdown :)
Thank you Husam. There is no specific reason. As you know programming to an interface is always better as apposed to specific concrete type. Sorry for being a bit inconsistent here.
Dear sir, thanks for your upcoming videos. But we have a question on your series. We observed, every section of this tutorial series, you have avoided deletion functionality. How much longer to implement the delete? As well as, we have started several asp.net Core applications project within your tutorial, thanks.
What a timing? In our next video in this series we discuss exactly that. How delete IdentityUser from AspNetUsers database table using the asp.net core Identity API. I will share the link here in the comment after it is uploaded. Thank you for asking.
Hello, I am following this course and I just want to ask how can I update the role of an existing user. I want to be able to update their role by clicking in a dropdown of roles that I created.
Hello Dear Kudvenkat, Is this secured to pass user id parameter to the route? What else can we do to secure all these "updating user" part? If you answer, I'll be so happy. Thank you.
Great question. No, not very secure. However, with ASP .NET Core it's easy to encrypt the ID. Encrypting and Decryption in ASP .NET Core is discussed in Part 120. You can find all the asp .net core course videos, slides and text articles in sequence on the following page. Hope you will find it handy. www.pragimtech.com/courses/asp-net-core-mvc-tutorial-for-beginners/ If you have time, can you please leave your rating and valuable feedback on the reviews tab. It really helps us. Thank you. Good luck and all the very best with everything you are doing.
@@Csharp-video-tutorialsBlogspot Thank you for you answer, I will check those videos. By the way, for SignalR there are not much resources to learn and all current Resources are include .net framework, not .net core and most likely they are "chat" systems. But do you have any articles or videos about SignalR -SQL realtime relationship? For like, notification systems?
You can use List if you want to. I just wanted to show we can use either of them. List implements IList. So you could use List or IList, although as you might already know programming against an interface is always much better than programming against a specific implementation. Hope this answers your question.
The ApplicationUser is solely for representing a User data entity. The ViewModel is only for dealing with information gathered or displayed by the view, and it may deal with different fields than ApplicationUser, depending on requirements. It's best to use models that relate to their domain of operation.
Dear Venkat - Could you kindly explain the following code that are present in EditUser HttpPost Action. Why are we copying Email, UserName, and City from the model object into the respective properties on the user object ??? user.Email = model.Email; user.UserName = model.UserName; user.City = model.City; var result = await userManager.UpdateAsync(user);
Because UpdateAsync() method of UserManager service only accepts an instance of type ApplicationUser and not EditUserViewModel. Hence we copy the data over to user object which is of type ApplicationUser. Hope this answers your question.
What I mean is when we update Email, UserName, and City on the user interface, those value that we type on the UI will be copied into the respective properties on the user object is it ???
Yes, the values from the UI are automatically passed to EditUserViewModel through model binding and we are copying them over to the User object which is then passed to UpdateAsync() method of UserManager service. The UserManager service in tun updates the data in the underlying AspNetUsers database table. Hope this now clear to you.
Thanks for the video! Very helpful. Can anyone know how to update customized appUser with PK = UserName (new column)? I am using updateAsync(user) and its getting failed with error msg= "Failed:DuplicateUserName". Any suggestions?
Severity Code Description Project File Line Suppression State Error CS0411 The type arguments for method 'IModelExpressionProvider.CreateModelExpression(ViewDataDictionary, Expression)' cannot be inferred from the usage. Try specifying the type arguments explicitly. EmployeeManagement Active I got this error in EditUser.cshtml in line one when we set the model EditUserViewModel
What a great Explanation Sir, Thank You for your efforts
I think you are one of the best tutorial in UA-cam , thanks for every video one by one
Thanks for this impressive users tutorial, Great job! Your'e awesome!
I like how we repeat same pattern many times. Even if I cant understand everything 1st time I can do it again and again. :P
Very nice explanation of Identity tutorial from scratch . Thank you sir.
The best tutorials in UA-cam , thanks U
you probably dont care but if you are bored like me atm then you can stream pretty much all of the new movies and series on instaflixxer. Have been streaming with my gf during the lockdown :)
@Jayce Koda Yup, been using InstaFlixxer for months myself :)
@Jayce Koda Definitely, been using instaflixxer for since november myself :)
@Jayce Koda definitely, have been watching on InstaFlixxer for years myself :D
Many many thanks, get id from your code and my problem have been resolved.
The best tutorial,
I have a question why you use IList for Roles and List for claims
Thx
Thank you Husam. There is no specific reason. As you know programming to an interface is always better as apposed to specific concrete type. Sorry for being a bit inconsistent here.
@@Csharp-video-tutorialsBlogspot Thank Your Sir for cleaning last doubt also 😃
Thank you , we need custom authentication by Access token. Thanks again :)
Sure Khaled - We will discuss Access tokens in our upcoming videos. Great suggestion. Thank you.
great explanation..
Dear sir, thanks for your upcoming videos. But we have a question on your series. We observed, every section of this tutorial series, you have avoided deletion functionality. How much longer to implement the delete? As well as, we have started several asp.net Core applications project within your tutorial, thanks.
What a timing? In our next video in this series we discuss exactly that. How delete IdentityUser from AspNetUsers database table using the asp.net core Identity API. I will share the link here in the comment after it is uploaded. Thank you for asking.
@@Csharp-video-tutorialsBlogspot, my dear online teacher, we have to wait for your next videos. Thanks...
As promised here is the video that explains DELETE functionality.
ua-cam.com/video/MhNfyZGfY-A/v-deo.html
Hello, I am following this course and I just want to ask how can I update the role of an existing user. I want to be able to update their role by clicking in a dropdown of roles that I created.
please how to use angular or vue.js or pug.js in mvc core thanks
For what "else" at 14:31 ? Usualy you don't use it.
Hello Dear Kudvenkat,
Is this secured to pass user id parameter to the route? What else can we do to secure all these "updating user" part?
If you answer, I'll be so happy. Thank you.
Great question. No, not very secure. However, with ASP .NET Core it's easy to encrypt the ID. Encrypting and Decryption in ASP .NET Core is discussed in Part 120. You can find all the asp .net core course videos, slides and text articles in sequence on the following page. Hope you will find it handy.
www.pragimtech.com/courses/asp-net-core-mvc-tutorial-for-beginners/
If you have time, can you please leave your rating and valuable feedback on the reviews tab. It really helps us. Thank you. Good luck and all the very best with everything you are doing.
@@Csharp-video-tutorialsBlogspot Thank you for you answer, I will check those videos.
By the way, for SignalR there are not much resources to learn and all current Resources are include .net framework, not .net core and most likely they are "chat" systems. But do you have any articles or videos about SignalR -SQL realtime relationship? For like, notification systems?
Why are we using IList Roles instead of List Roles?
You can use List if you want to. I just wanted to show we can use either of them. List implements IList. So you could use List or IList, although as you might already know programming against an interface is always much better than programming against a specific implementation. Hope this answers your question.
Still has the same question: Why are we not doing if(ModelState.IsValid) like we did in the videos earlier in this series?
From what I understood, it's because validation is done in userManager.UpdateAsync(user);
Hi, when I change UserName to something different than the email I can't log in?
Can't log in with the new UserName? I am able to.
Why we have to use EditUserViewModel and not ApplicationUser model directly?
Thanks for the tutorial.
The ApplicationUser is solely for representing a User data entity. The ViewModel is only for dealing with information gathered or displayed by the view, and it may deal with different fields than ApplicationUser, depending on requirements. It's best to use models that relate to their domain of operation.
@@nickeax thank you🙏🏻
Thank You ♥
Is there any way to download code of this series?
Thank you ...
Dear Venkat - Could you kindly explain the following code that are present in EditUser HttpPost Action. Why are we copying Email, UserName, and City from the model object into the respective properties on the user object ???
user.Email = model.Email;
user.UserName = model.UserName;
user.City = model.City;
var result = await userManager.UpdateAsync(user);
Because UpdateAsync() method of UserManager service only accepts an instance of type ApplicationUser and not EditUserViewModel. Hence we copy the data over to user object which is of type ApplicationUser. Hope this answers your question.
What I mean is when we update Email, UserName, and City on the user interface, those value that we type on the UI will be copied into the respective properties on the user object is it ???
Yes, the values from the UI are automatically passed to EditUserViewModel through model binding and we are copying them over to the User object which is then passed to UpdateAsync() method of UserManager service. The UserManager service in tun updates the data in the underlying AspNetUsers database table. Hope this now clear to you.
Luv ya bud! :*
Thanks for the video! Very helpful. Can anyone know how to update customized appUser with PK = UserName (new column)? I am using updateAsync(user) and its getting failed with error msg= "Failed:DuplicateUserName". Any suggestions?
Severity Code Description Project File Line Suppression State
Error CS0411 The type arguments for method 'IModelExpressionProvider.CreateModelExpression(ViewDataDictionary, Expression)' cannot be inferred from the usage. Try specifying the type arguments explicitly. EmployeeManagement Active
I got this error in EditUser.cshtml in line one when we set the model EditUserViewModel
userClaims.Select(x => x.Value).ToList() Why Did We use it like that i did not understand why