ASP.NET Core MVC CRUD Operations using .NET 8 and Entity Framework Core - MVC For Beginners Tutorial

  Рет қаралды 154,062

Sameer Saini

Sameer Saini

Күн бұрын

👉 ASP.NET Core MVC - UDEMY COURSE 🚀
www.udemy.com/...
In this video, we are going to create an ASP.NET MVC CRUD app using Entity Framework Core and SQL Server. We will use .NET 8 MVC template in Visual Studio 2022 to create this CRUD app.
This is a Model View Controller pattern which is a very famous architecture pattern in software design and is equally popular when clubbed together with the ASP.NET framework
We will use Bootstrap 5 in this ASP.NET MVC website to style our pages.
We will install EF Core packages and use the code-first approach to create our SQL Server database.
This will be a great ASP.NET Core MVC Tutorial for beginners and for those who have already worked in ASP.NET MVC before, this video would be a great refresher.
💖 Subscribe to show support: bit.ly/2FAgXzS
☕ Buy me a coffee: www.buymeacoff...

Пікірлер: 173
@SohaibHasan
@SohaibHasan 4 ай бұрын
By far one of the best videos on CRUD operations in .NET Core 8.0 Awesome brother.
@Lets_develop_it
@Lets_develop_it 6 ай бұрын
Everyone is creating content with automatic features, so many things remain misunderstood. However, you create everything from scratch, and I've been able to understand it all.
@samduss4193
@samduss4193 Ай бұрын
indian people do have the power of imagination and they can actually make something basic very complicated as something complicated very deep detailed ;) I think it is just the genetics lol
@TechGuyHabib
@TechGuyHabib 4 ай бұрын
Excellent Explanation, I enjoyed my Weekend with your CRUD Tutorial Now I'm bit confident about, (1) Async Method (2) Entity FrameWork (3) dbContext (4) Razor View (5) ViewModel (6) RediretToAction Functionality (7) Controller.
@SameerSaini
@SameerSaini 4 ай бұрын
Glad you liked it
@matthewkk5087
@matthewkk5087 4 ай бұрын
as I know already, async method is that method doesnot wait for previous code it imediatelly starts working. entity framework is all abouth methods u dont need to use SQL Commands thats it i think. dbContext is simple connection. rezor view is html. dont know 5 and 6 :D . and controller is api endpoints (swagger). correct me if I am wrong it will be helpful
@pratikpanda889
@pratikpanda889 Ай бұрын
I have been through lots of .Net Core MVC videos and this is by far the best best tutorial I have ever seen. Thankyou very much
@PM-xi4wl
@PM-xi4wl 6 ай бұрын
Excellent tutorial. Had difficulty finding a video that didnt just use automatic features. This has been so handy!
@MarcDunivan
@MarcDunivan 8 ай бұрын
A good start... so much more functionality to add...form value validation...storing phone number and email address in a standard formatting..storeing Subscribed as 'Y'|'N' values...have a different table name in the database from the Model name...paging/scrolling list when the Students records are bigger... Open Id Connect Azure authentication...foreign key values in the model...modals...popups...layout regions...the "Add""button" on the Students/List page and redirecting back to Students/List on the Add page after "Save"
@jasnachktkl
@jasnachktkl 6 ай бұрын
Thank you Sameer, Your explanation is awesome. I am a beginner in .NET MVC. But I understood each and every point you explained. Great Job 👏
@pranjalpandey868
@pranjalpandey868 6 ай бұрын
Sir, You are very intelligent and knowledgeable person Respect++
@arnavgour506
@arnavgour506 7 ай бұрын
Thank you so much. I was looking for this video and finally landed here. Best explanation.
@karthikn4510
@karthikn4510 2 ай бұрын
Good one😊😊As a Fresher able to understand it easily and build it. Explained in detailed manner. Thankyou Sir😇
@鄭海寅-s8d
@鄭海寅-s8d Ай бұрын
Hello. Thank you for your detailed and kind lectures. I am happy to study a lot with the lectures you provide. I think I need to buy paid lectures and study more. Thank you again for your lectures.
@SameerSaini
@SameerSaini Ай бұрын
You are welcome, glad you liked the video
@ableballon8
@ableballon8 6 ай бұрын
This is very cool because it’s like creating a new database from Visual Studio, but not from SQL Server Management Studio.
@karolinamaka8929
@karolinamaka8929 6 ай бұрын
OMG I love this. This tutorial is so good! You explain everything step by step and you made it easy to learn!
@thinkdifferent5809
@thinkdifferent5809 5 ай бұрын
Very glad I found your video, concise and clear instructions sticking to the main topic.
@samolyuthpanha
@samolyuthpanha 17 күн бұрын
Thank you so muc for this useful video!
@aungyethu9743
@aungyethu9743 3 ай бұрын
Awsome beginner-friendly tutorial! I purchased the complete course on Udemy. Why not!
@SameerSaini
@SameerSaini 3 ай бұрын
Thank you 🙏
@30hi31
@30hi31 4 ай бұрын
Cool asf mate really good video, thank u a lot
@SameerSaini
@SameerSaini 4 ай бұрын
Cheers
@JordanDelaCruz-f1t
@JordanDelaCruz-f1t 12 күн бұрын
Thank you for this wonderful tutorial, I learned a lot
@paulantonibriceno3023
@paulantonibriceno3023 7 ай бұрын
Thank you so much Sameer, you were incredible :')
@SameerSaini
@SameerSaini 7 ай бұрын
Thanks Paul
@ronaldjohnson4470
@ronaldjohnson4470 8 ай бұрын
Sameer, thank you. I have purchased three of your Udemy courses and enjoyed all of them. Do you have any plans for the Blazor .NET 8 tutorials on Udemy?
@jhenssenvega9784
@jhenssenvega9784 26 күн бұрын
thank you for this!!! It really helped me out.
@ableballon8
@ableballon8 5 ай бұрын
Thank you so much Sameer for this tutorial. I really needed it.
@赛尼木
@赛尼木 11 күн бұрын
thx I finished this.
@IrinaTirikos
@IrinaTirikos 4 ай бұрын
Best explanation, very easy to understand. Thank you
@SameerSaini
@SameerSaini 4 ай бұрын
Glad it was helpful!
@duvanm2483
@duvanm2483 6 ай бұрын
Thank you for the Tutorial. Very easy to follow
@SameerSaini
@SameerSaini 6 ай бұрын
Glad you like it!
@KopparapuTejaswi
@KopparapuTejaswi 5 күн бұрын
Excellent tutorial!! Is there any repo for above code?
@masudp27
@masudp27 28 күн бұрын
Thanks!
@SameerSaini
@SameerSaini 28 күн бұрын
Appreciate your support 🙏
@CodeMeet1
@CodeMeet1 3 ай бұрын
Excellent Tutorial Sir
@MAUIMS-m4g
@MAUIMS-m4g 6 ай бұрын
Thank you so much Sameer, great video!!!!!!!!!!!!
@scorpioboy2894
@scorpioboy2894 Ай бұрын
Thanks for the wonderful video ❤🙏
@oyldrr
@oyldrr 4 ай бұрын
Dünkü etkinlik kötü olsa da ülkenin adını kurtardın. 👏
@ayushikaithwas2957
@ayushikaithwas2957 3 ай бұрын
Best video I ever watch ❤
@deeptibaviskar6456
@deeptibaviskar6456 4 ай бұрын
Excellent tutorial,great explaination.
@SameerSaini
@SameerSaini 4 ай бұрын
Glad it was helpful!
@syedmubeenhussain6317
@syedmubeenhussain6317 6 ай бұрын
Thank you sir for creating this best tutorial
@JeyaKartheesanS
@JeyaKartheesanS 5 ай бұрын
Thank you! it's really nice content.
@SameerSaini
@SameerSaini 5 ай бұрын
Welcome!
@BbSs-b1e
@BbSs-b1e 5 ай бұрын
Excellent tutorial.Thank you so much.
@SameerSaini
@SameerSaini 5 ай бұрын
You're welcome
@helvecioguimaraes
@helvecioguimaraes Ай бұрын
Hey, Sameer, many thanks for this. I saw your Udemy courses. Assuming I learned the basic of C# and I want to be able to build web apps integrated with an online database (such as MongoDB), from which course I should start? Assume that I have covered the basics of HTML and CSS as well. Thanks.
@SameerSaini
@SameerSaini Ай бұрын
Hi, With all the above info, my MVC course should be a good start, it uses Microsoft sql server but once you understand the basics of the application. Swapping with Mongodb would not be a painful task
@SameerSaini
@SameerSaini Ай бұрын
Here's a coupon for you AUG2024
@Suni777
@Suni777 4 ай бұрын
Really sir good explanation thank you for you valuable time
@kundankumar0
@kundankumar0 3 ай бұрын
Great Explanation
@no-han
@no-han Ай бұрын
good video for beginer
@bhaktipande4576
@bhaktipande4576 7 ай бұрын
Very easy to understand.
@yogiswara19
@yogiswara19 Ай бұрын
Thank you brother!
@seemahashim7000
@seemahashim7000 6 ай бұрын
Very Good Tutorial
@Login-it9sq
@Login-it9sq 7 ай бұрын
video just completed it works nicely but i cannot edit phone number i might have made some errors there, but its alright , everything else works nicely, thanks nice view i mean video
@Caariin88
@Caariin88 6 ай бұрын
You are the best!
@ascodes3461
@ascodes3461 2 ай бұрын
Thank You Very Much Man 😍😊
@matsoft.oficial
@matsoft.oficial 4 ай бұрын
GRACIAS POR COMPARTIR TUS CONOCIMIENTOS ... LIKE
@alexandercereno4098
@alexandercereno4098 Ай бұрын
may i ask why did you create another model which is the AddStudentViewModel but its the same in Student.cs?
@Noreply-NFAPReviewGr-3
@Noreply-NFAPReviewGr-3 Ай бұрын
Is it the community version that you are using?
@SameerSaini
@SameerSaini Ай бұрын
Yes
@rajkumarkasaraveni
@rajkumarkasaraveni 6 ай бұрын
Nice Explanation...
@aerotheoreo2050
@aerotheoreo2050 6 ай бұрын
Does your full course include FHService, IFHService with the PortalDBContext as well as mapping?
@amishasharma348
@amishasharma348 5 ай бұрын
add-migrarion m error aa rha hai...commandnotfound... What i do
@inshaqamar2680
@inshaqamar2680 2 ай бұрын
Please explain it. I also got a problem in migration
@teawithbubble4097
@teawithbubble4097 Ай бұрын
What do I have to type in "public async Task add(AddTicketViewModel viewModel)" when I have to type in columns from different tables?
@ruthokoduwa6837
@ruthokoduwa6837 2 ай бұрын
Great tutorial. Simple and well understood. Quick question: I passed the var student to the dbContext.Student.Remove(student); since the id was alread passed to it and it worked. Don't know if I'm actually doing the right thing
@justnazmus8140
@justnazmus8140 8 ай бұрын
great video sameer.
@olavoz8210
@olavoz8210 2 ай бұрын
I subscribed... that's all...❤ thank you 🙏
@The_Stranger_006
@The_Stranger_006 Ай бұрын
sir i try but migration are not created in my laptop please suggest me what to i do for this error
@charleswanjohi1352
@charleswanjohi1352 4 ай бұрын
Goood Job. Can you provide a video on entity relationships?
@rjstudiocreation3437
@rjstudiocreation3437 7 ай бұрын
great explanation
@saroshwadia
@saroshwadia 8 ай бұрын
Great video, please create something similar with Blazor .Net 8 using SSR Thx 🙂
@atirah14
@atirah14 8 ай бұрын
Can you do a tutorial in blazor server and webassembly or blazor web app
@aspirees2945
@aspirees2945 6 ай бұрын
Thank you for the video
@starsonearth8952
@starsonearth8952 2 ай бұрын
please do a video on how to add validation in this form
@nurmuhammad2175
@nurmuhammad2175 5 ай бұрын
Thank you!
@niahkustaa995
@niahkustaa995 2 ай бұрын
the best thank you
@MarcinScholke
@MarcinScholke 6 ай бұрын
good example
@muhammadyousufsaleem6149
@muhammadyousufsaleem6149 8 ай бұрын
SIr please make a video Blazor and dot net core 8
@EricOnYouTube
@EricOnYouTube 3 ай бұрын
What does "InvalidOperationException: The source 'IQueryable' doesn't implement 'IAsyncEnumerable" mean?
@jayjorneypua8174
@jayjorneypua8174 8 ай бұрын
I kept doing save but its not showing the details that I input to the form back to the viewModel. Why is that?
@AbdulazeezSule-w4e
@AbdulazeezSule-w4e 2 ай бұрын
Hello nice tutorial. I cannot find dependencies your visual studio is different.
@luisfernandodeolazabalsche3317
@luisfernandodeolazabalsche3317 8 ай бұрын
Hello, thank you very much for the video, I wanted to ask you if you have any crud with pagination?
@gauravojha2551
@gauravojha2551 4 ай бұрын
hi we can use httpput for the edit then why you have used httppost?
@akiragmg
@akiragmg 3 ай бұрын
Thanks mate
@codingwalo9994
@codingwalo9994 5 ай бұрын
Sir create one video using database first approach
@MangeshGaikwad-u2u
@MangeshGaikwad-u2u 7 ай бұрын
Great Video ,thank you so much making .
@SameerSaini
@SameerSaini 7 ай бұрын
You're welcome 😊
@sujantuladhar2055
@sujantuladhar2055 Ай бұрын
https is not running on my laptop how to solve https to run can share making video on channel
@RajaKumar-tj1kh
@RajaKumar-tj1kh 5 ай бұрын
Thank you Sir
@hsegol4257
@hsegol4257 4 ай бұрын
Why we are using http get and post even for updating and deleting. Why we didn't use put and delete http verbs
@neerajjoshi9924
@neerajjoshi9924 5 ай бұрын
Thanku sir! ❤
@user-fw1ld
@user-fw1ld 4 ай бұрын
Very helpful
@SameerSaini
@SameerSaini 4 ай бұрын
Glad it was helpful
@aminejanedi
@aminejanedi 2 ай бұрын
Thank you so much ye bnin
@GunnþórÁrnason
@GunnþórÁrnason 4 ай бұрын
Good video
@Chefrachida
@Chefrachida 8 ай бұрын
Great video, thank you. Is it possible to get the source code of this tutorial? Plus I would like to buy a coffee.
@geepy5708
@geepy5708 8 ай бұрын
I'm yet to see an mvc project with authentication
@hammodh500
@hammodh500 8 ай бұрын
u can select individual accounts when creating the project to have registration, login, logout, forgot password and email confirmation
@chikalawrence8502
@chikalawrence8502 5 ай бұрын
Sir can you do a video on clean architect.
@ВалерияКудакова-г1й
@ВалерияКудакова-г1й 4 ай бұрын
Hi Sameer Saini ,thanks for explaining. I have trouble with 'edit' method(51:44). My model always empty. HttpPost method not implemented. where did I go wrong? thank you in advance [HttpGet] public async Task Edit(int SystemID) { var systems = await dbContext.MoV.FindAsync(SystemID); return View(systems); } [HttpPost] public async Task Edit(Systems viewModel) { var systems = await dbContext.MoV.FindAsync(viewModel.SystemID); if (systems is not null) { systems.Systema = viewModel.Systema; systems.PROD = viewModel.PROD; systems.PREPROD = viewModel.PREPROD; systems.TEST = viewModel.TEST; systems.V1 = viewModel.V1; systems.V2 = viewModel.V2; systems.V3 = viewModel.V3; systems.V4 = viewModel.V4; systems.V5 = viewModel.V5; systems.V6 = viewModel.V6; systems.V7 = viewModel.V7; systems.V8 = viewModel.V8; systems.V9 = viewModel.V9; systems.V10 = viewModel.V10; systems.V11 = viewModel.V11; systems.V12 = viewModel.V12; systems.V13 = viewModel.V13; systems.V14 = viewModel.V14; systems.V15 = viewModel.V15; systems.V16 = viewModel.V16; await dbContext.SaveChangesAsync(); } return RedirectToAction("List", "Add_System");
@AliOmer-ho1xp
@AliOmer-ho1xp 4 ай бұрын
Thanks
@omidbasharat8244
@omidbasharat8244 8 ай бұрын
sir make full course for angular or react please
@hammodh500
@hammodh500 8 ай бұрын
the delete button doesn't work i have the same syntax as u
@KuldeepBisht_KD
@KuldeepBisht_KD 6 ай бұрын
I need Database first approach with dapper in asp.net core. Any references please?
@naveenthammisetty269
@naveenthammisetty269 6 ай бұрын
Can you make about microservices with grpc, apache kafka, mrabbit, ocelot
@poojithapalagani6352
@poojithapalagani6352 7 ай бұрын
Updating command that time I am getting index 0 error who can I solve please help me out
@dawidolino9398
@dawidolino9398 8 ай бұрын
do you plan on creating a project using angular/react frontend?
@dawidolino9398
@dawidolino9398 8 ай бұрын
also we'd like to see one tutorial with authentication since there are not many good tutorials here on youtube
@rubinrodriguez6185
@rubinrodriguez6185 2 ай бұрын
Hello Sameer, I was getting a error while creating add method I tried to access dbContext.Students to call AddAsync method as you did but it says cannot find Students in dbContext can you help me?
@SameerSaini
@SameerSaini 2 ай бұрын
Check your dbcontext file if you have added the students property
@ramaws013kumar
@ramaws013kumar 4 ай бұрын
Hi Sameer , first of thanks for explaining .net in very precise manner but i am stuck at 38:59 where i am hovering viewmodel but not getting the info back so that i can go ahead, can you please help me why i am not getting .
@SameerSaini
@SameerSaini 4 ай бұрын
Hi, Check if your View is properly configured and the Form tag is there, and the button has a submit attribute
@viralpatel5566
@viralpatel5566 3 ай бұрын
Hey ramaws I am stuck on the same page, please help me if your issue resolved ..
@yking3367
@yking3367 3 ай бұрын
@@viralpatel5566 same im also stuck at that instance only
@SomnathKhan-m7i
@SomnathKhan-m7i 6 ай бұрын
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) Getting this error while run this command Update-Database....Please suggest what I need to do.
@SameerSaini
@SameerSaini 6 ай бұрын
Your connection string is not valid, make sure you are entering a valid connection string,
@Musamaliaqat
@Musamaliaqat Ай бұрын
hi. i am having an error every time I add the migration. the error says "The term 'Add-Migration' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again." any solution for this??
@SameerSaini
@SameerSaini Ай бұрын
Check if you have added the nuget packages mentioned
@Musamaliaqat
@Musamaliaqat Ай бұрын
@@SameerSaini resolved. Thank you so much
@surjyakantaprusty7208
@surjyakantaprusty7208 4 күн бұрын
@@Musamaliaqat hey help me i am also getting the same error what package i should install
@AliOmer-ho1xp
@AliOmer-ho1xp 4 ай бұрын
hi thank you Dr.Sameer there is problem when Edit the guid return zeroes 000 00000 000 0000 what should i check
@SameerSaini
@SameerSaini 4 ай бұрын
Hi , can you tell me what line of code returns you those 0s
@mikeabordo6655
@mikeabordo6655 6 ай бұрын
how do i donwload the bootstrap
@funnytags8216
@funnytags8216 8 ай бұрын
The term 'Add' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + Add Migration"Initial migration" + ~~~ + CategoryInfo : ObjectNotFound: (Add:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException having this issue
@SameerSaini
@SameerSaini 8 ай бұрын
Add-Migration
Brutally honest advice for new .NET Web Developers
7:19
Ed Andersen
Рет қаралды 192 М.
POV: Your kids ask to play the claw machine
00:20
Hungry FAM
Рет қаралды 19 МЛН
when you have plan B 😂
00:11
Andrey Grechka
Рет қаралды 65 МЛН
大家都拉出了什么#小丑 #shorts
00:35
好人小丑
Рет қаралды 100 МЛН
iPhone or Chocolate??
00:16
Hungry FAM
Рет қаралды 33 МЛН
ASP.NET Core Crash Course - C# App in One Hour
1:00:44
freeCodeCamp.org
Рет қаралды 1,5 МЛН
"The Life & Death of htmx" by Alexander Petros at Big Sky Dev Con 2024
23:01
Montana Programmers
Рет қаралды 60 М.
CRUD without Entity Framework in ASP.NET Core MVC
44:30
CodAffection
Рет қаралды 105 М.
Don't Use Polly in .NET Directly. Use this instead!
14:58
Nick Chapsas
Рет қаралды 62 М.
POV: Your kids ask to play the claw machine
00:20
Hungry FAM
Рет қаралды 19 МЛН