CRUD Operation in ASP.NET Core using Visual Studio 2022

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey everyone in this video we'll hit add operation in asp.net core version 6. maybe you're using version C1 or 5. but I'm using version 6. let's open the visual studio code Visual Studio 2022 I'm using let's create a new project search here web .net core web okay take this and click next let's name it current up press next and version 6 selected [Music] the project has created so now we will come and create a folder here model folder in this project right click on this okay Rd new folder the name of the folder would be model that has created so now let's create a class inside this class name would be for example user add this so let's add properties to this class we will simply write prop ER and please double tap okay it is integer type and ID the second one would be entering type and the name would be and the third one would be strain property emails after writing this and now let's come to the pages okay this folder right click and add a new folder the name would be users okay after that right click on this and press add and here just click new folding item press and raise the pages erase the pages using Entity Framework add it so now it's installing Entity framework and other extensions okay so first let's specify the model for this user model and we don't have context class so just press this plus button it will create a new one now press add ok so it is installing now the packages okay core tools and skill server if you get any error here so you can install that package main value okay you go into tools and package manager and install that manually so it is installing code generation design see it is updating it's building the project now [Music] Yeah the code has generated for us and now after generating the code let's see see the code are generated so now let's tools and you get package manager and come to the console and just try it here add migration initial it will add the migration here the migration has added succeeded see the migration as added here and now let's update our database update database it will just update our database later I will show you the database okay build succeeded okay that has done okay so now let's run our project so now let's go to the user users okay press it see we came here to the user area so now let's create a new user press on this let's add name user piece of gmail.com and click it a new user has created okay so let's add a new one you can go back okay through clicking this link okay the user is created now you can see the details of them okay you can go back to the list you can edit them let's start for example change it to the account see it has changed if you would like to delete press this button that has do you want to delete yes so now let's check the database of this okay the database which has created so come to SQL Server object Explorer come here to the skill server click on this one come to the database section and the card app which we have created right now okay come to the tables see that the dbo dot user that we has created and right click on this view design of this we can see the design of this and also we can see the data in this yeah it is the design of this table okay the design so let's see the data right click on this view the data we can see the data in this table okay see it is the data that we have in our table so it was all about crowd operation in a asp.net code so if you like this video please subscribe our YouTube channel and thanks for watching
Info
Channel: Code With Yousaf
Views: 30,041
Rating: undefined out of 5
Keywords: crud operations in asp.net core mvc, crud operations in asp.net core, crud operations in asp.net core web api, crud operations, what is crud operation in .net core?, crud operation in .net core mvc, crud operation in asp.net core 6, crud operation in asp.net core mvc, crud operation in asp.net core 2.0, crud operations in .net core, asp.net core web api crud operations, crud operation in net core using linq, ado.net crud operation in asp.net core, crud operations in rest api
Id: 6r9OSQdaAb4
Channel Id: undefined
Length: 8min 4sec (484 seconds)
Published: Tue Feb 28 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.