Building an ASP.NET Core 8 MVC Web App: User Registration Tutorial || 2024 || ABFirstTech

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
so in today's discussion we are going to implement about asp.net core MVC web app user registration as. net core MBC so net core 7 or 8 6 7 or 8 any version you can Implement same so now so for this what we'll do step by step let so yesterday we have created one net course web application we will use same so what we are going to do you will create a customer customer we will create one model customer model okay and then create the create DB context class so third once we create the DB context class what is the third one we do add the connection string in uh app setting. Json uh add the connection string in app setting. Json and then add Connection in program. CS and then before this you need to install the required packages and then we are going to do migration create create controller and Implement C operations so this is this is the today's agenda so as part of this so I'll go here netc web app this is our [Music] application so what is first let's create one model add class so don't have user here let's add the user model on user class user registration we have to do as so step one create a user model this is what we going to do so user AME password email phone okay these are all my user registration user ID username password email phone so in this user ID I want to make it as a primary key how to make that using a key attribute system. component model. data annotations we're going to use now so once this is done so I have created the user model so once model is created what next step to install the required packages what are the required packages we need go here so dependencies Frameworks right click manage new get packages we don't have any package now so we need three packages basically entity Entity framework [Music] core browse any framework core which version you want to install so I'll go with the seven now install click okay I accept for design ver seven install accept see Tools verion 7 inst start take Okay I accept so then SQL Server inst take accept so this is also done let SK server installed okay so all the packages installed so this is step to next we have to create the DB context class so how to create we'll create one folder here and folder data and class us data Contex so which should be there from ding context so which will be D from microsoft. framework 4 so this is done we create one so we have created our Constructor now we need to rein our model what is our model user model so where in the context how public D set of this to context class users get on set so we have to add the name space what is the name space models so done this is [Music] done so DB context class is done now add the connection string in app setting. JSM go to app setting. JSM here connection default server equals database equals this ISP TR connection okay what is server name go to your SQL Server so use a code first approach this is your Ser so here you can give server or data source also data source or server both are same okay database for example user data or user TV something like this some name YouTube which is not there in the database and then Integrated Security true true or sspa both are same H there is some difference we discuss true or Ted [Music] connection okay and false so we'll go here trusted connection there is a space okay check uh now so this is done part app setting. JS add the connection string in app setting. JS now add this connection in the program. Cs what your program CS file here is your program CS file so here window that services do and data context add data context so what is your data context name specify your data context name here so this is my data conection user data context the data context so what is your database use [Music] [Music] [Music] [Music] [Music] [Music] [Music] [Music] [Music] [Music] [Music] [Music] [Music] [Music] [Music] [Music] [Music] [Music] [Music] [Music] [Music] [Music] [Music] [Music] [Music] [Music] [Music] [Music] [Music] [Music] [Music] [Music] [Music] [Music] [Music] [Music] he yeah [Music] [Music] [Music] [Music] [Music] [Music] [Music] [Music] [Music] [Music] [Music] [Music]
Info
Channel: ABFirstTech
Views: 174
Rating: undefined out of 5
Keywords: asp.net core mvc login with identity, add asp.net core identity to existing project, asp.net core customize identity, user authentication in asp.net core mvc, .net core mvc user authentication, add asp.net core identity to an existing project, asp.net core identity, custom identity in asp.net core mvc, user authentication and authorization in asp.net core, asp.net core mvc login and registration, identity customization, .net identity, asp.net core, asp.net core mvc, login
Id: wp4ZiOFs4B8
Channel Id: undefined
Length: 26min 58sec (1618 seconds)
Published: Wed Mar 20 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.