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

Поділитися
Вставка
  • Опубліковано 21 гру 2024

КОМЕНТАРІ • 209

  • @PM-xi4wl
    @PM-xi4wl 9 місяців тому +9

    Excellent tutorial. Had difficulty finding a video that didnt just use automatic features. This has been so handy!

  • @Lets_develop_it
    @Lets_develop_it 9 місяців тому +38

    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 4 місяці тому

      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

  • @SohaibHasan
    @SohaibHasan 7 місяців тому +9

    By far one of the best videos on CRUD operations in .NET Core 8.0 Awesome brother.

  • @MarcDunivan
    @MarcDunivan 11 місяців тому +5

    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"

  • @TechGuyHabib
    @TechGuyHabib 7 місяців тому +10

    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  7 місяців тому +1

      Glad you liked it

    • @matthewkk5087
      @matthewkk5087 7 місяців тому

      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

  • @arnavgour506
    @arnavgour506 10 місяців тому +4

    Thank you so much. I was looking for this video and finally landed here. Best explanation.

  • @jasnachktkl
    @jasnachktkl 9 місяців тому +3

    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 9 місяців тому +3

    Sir, You are very intelligent and knowledgeable person
    Respect++

  • @ankithtiwari5397
    @ankithtiwari5397 2 місяці тому +1

    Great explanation sir, as I am a beginner in ASP. NET I got a better understanding after watching this video. Thank you very much.

  • @masudp27
    @masudp27 3 місяці тому +1

    Thanks!

    • @SameerSaini
      @SameerSaini  3 місяці тому

      Appreciate your support 🙏

  • @pratikpanda889
    @pratikpanda889 4 місяці тому

    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

  • @鄭海寅-s8d
    @鄭海寅-s8d 4 місяці тому +3

    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  4 місяці тому +1

      You are welcome, glad you liked the video

  • @JordanDelaCruz-f1t
    @JordanDelaCruz-f1t 3 місяці тому +2

    Thank you for this wonderful tutorial, I learned a lot

  • @karolinamaka8929
    @karolinamaka8929 9 місяців тому

    OMG I love this. This tutorial is so good! You explain everything step by step and you made it easy to learn!

  • @rypki
    @rypki 2 місяці тому +1

    Thank you very much for this tutorial. I have one question to the situation that happens in 38 minute of the recording: why do you set the output type of the Add method to Task, why can you just leave the IActionResult...?

  • @marcouitendaal985
    @marcouitendaal985 Місяць тому

    Very succint. Short and to the point. Without prior knowledge on MVC I wouldn't have been able to follow along, because all kinds of concepts remain implicit. However having stumbled my way through various videos and courses - just finished messing with OutputCache and ActionFilter - I can now just sit and watch this video and see that I properly grasp the basics of MVC interacting with a database through EF. btw I just purchased 3 of your courses on Udemy. looking forward to some more in depth there.

  • @user-yh2vq3vc8n
    @user-yh2vq3vc8n 3 дні тому

    It was excellent, I went step by step with you

  • @30hi31
    @30hi31 7 місяців тому +3

    Cool asf mate really good video, thank u a lot

  • @aungyethu9743
    @aungyethu9743 6 місяців тому

    Awsome beginner-friendly tutorial! I purchased the complete course on Udemy. Why not!

  • @karthikn4510
    @karthikn4510 4 місяці тому

    Good one😊😊As a Fresher able to understand it easily and build it. Explained in detailed manner. Thankyou Sir😇

  • @ableballon8
    @ableballon8 8 місяців тому

    Thank you so much Sameer for this tutorial. I really needed it.

  • @thinkdifferent5809
    @thinkdifferent5809 7 місяців тому

    Very glad I found your video, concise and clear instructions sticking to the main topic.

  • @aliraihannashrullah6048
    @aliraihannashrullah6048 2 дні тому

    Thank you so much, you are a life saver!

  • @ShahzadAli-bb1ou
    @ShahzadAli-bb1ou Місяць тому

    Simply Great !

  • @duvanm2483
    @duvanm2483 9 місяців тому

    Thank you for the Tutorial. Very easy to follow

  • @KopparapuTejaswi
    @KopparapuTejaswi 3 місяці тому +1

    Excellent tutorial!! Is there any repo for above code?

  • @teawithbubble4097
    @teawithbubble4097 4 місяці тому

    What do I have to type in "public async Task add(AddTicketViewModel viewModel)" when I have to type in columns from different tables?

  • @samolyuthpanha
    @samolyuthpanha 3 місяці тому +1

    Thank you so muc for this useful video!

  • @alexandercereno4098
    @alexandercereno4098 4 місяці тому +1

    may i ask why did you create another model which is the AddStudentViewModel but its the same in Student.cs?

  • @AbdulazeezSule-w4e
    @AbdulazeezSule-w4e 5 місяців тому +1

    Hello nice tutorial. I cannot find dependencies your visual studio is different.

  • @ManojKumar-e4j6h
    @ManojKumar-e4j6h 24 дні тому

    Thanks for the clear explanation

  • @ВалерияКудакова-г1й
    @ВалерияКудакова-г1й 7 місяців тому

    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");

  • @jhenssenvega9784
    @jhenssenvega9784 3 місяці тому

    thank you for this!!! It really helped me out.

  • @IrinaTirikos
    @IrinaTirikos 7 місяців тому

    Best explanation, very easy to understand. Thank you

  • @ableballon8
    @ableballon8 9 місяців тому

    This is very cool because it’s like creating a new database from Visual Studio, but not from SQL Server Management Studio.

  • @KuldeepBisht_KD
    @KuldeepBisht_KD 9 місяців тому +1

    I need Database first approach with dapper in asp.net core. Any references please?

  • @aerotheoreo2050
    @aerotheoreo2050 9 місяців тому

    Does your full course include FHService, IFHService with the PortalDBContext as well as mapping?

  • @EricOnYouTube
    @EricOnYouTube 6 місяців тому

    What does "InvalidOperationException: The source 'IQueryable' doesn't implement 'IAsyncEnumerable" mean?

  • @ayushikaithwas2957
    @ayushikaithwas2957 6 місяців тому

    Best video I ever watch ❤

  • @jaspreetmehra572
    @jaspreetmehra572 Місяць тому

    Hey Sameer, Thank you for the great video! I have one question, how to fetch data from Local DataBase? I did't make use of MS SQL External Database. Thank you!!

  • @edsonferraz1
    @edsonferraz1 Місяць тому

    Sameer, this course do you ofert in Portugues Brazil language?

  • @scorpioboy2894
    @scorpioboy2894 4 місяці тому

    Thanks for the wonderful video ❤🙏

  • @ramaws013kumar
    @ramaws013kumar 7 місяців тому

    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  7 місяців тому

      Hi, Check if your View is properly configured and the Form tag is there, and the button has a submit attribute

    • @viralpatel5566
      @viralpatel5566 6 місяців тому

      Hey ramaws I am stuck on the same page, please help me if your issue resolved ..

    • @yking3367
      @yking3367 6 місяців тому

      @@viralpatel5566 same im also stuck at that instance only

  • @DanishFarhan-wg3xz
    @DanishFarhan-wg3xz 4 дні тому

    do you have any course that teach how to link asp net 8 with oracle sql?

  • @gauravojha2551
    @gauravojha2551 7 місяців тому

    hi we can use httpput for the edit then why you have used httppost?

  • @deeptibaviskar6456
    @deeptibaviskar6456 7 місяців тому

    Excellent tutorial,great explaination.

  • @Martin-g8h
    @Martin-g8h 4 місяці тому +2

    Hi Sameer, thank you for the helpful video, I have had an issue with the delete button it was not passing the Id in the Controller simple fix by adding @Modul.Id in the Delete button tag asp-route-id="@Model.Id">Delete has fixed the problem under Edit.cshtml

    • @naurintanzilla
      @naurintanzilla 2 місяці тому

      Thanks.I was also facing this issue.and solve it after reading your comment

  • @BbSs-b1e
    @BbSs-b1e 8 місяців тому

    Excellent tutorial.Thank you so much.

  • @JeyaKartheesanS
    @JeyaKartheesanS 8 місяців тому +1

    Thank you! it's really nice content.

  • @Caariin88
    @Caariin88 9 місяців тому

    You are the best!

  • @mankim6354
    @mankim6354 2 місяці тому

    how to add another table in database?? sorry im still new with using mssql

  • @CodeMeet1
    @CodeMeet1 5 місяців тому

    Excellent Tutorial Sir

  • @MAUIMS-m4g
    @MAUIMS-m4g 9 місяців тому

    Thank you so much Sameer, great video!!!!!!!!!!!!

  • @syedmubeenhussain6317
    @syedmubeenhussain6317 9 місяців тому

    Thank you sir for creating this best tutorial

  • @sujantuladhar2055
    @sujantuladhar2055 4 місяці тому +1

    https is not running on my laptop how to solve https to run can share making video on channel

  • @Suni777
    @Suni777 7 місяців тому

    Really sir good explanation thank you for you valuable time

  • @Noreply-NFAPReviewGr-3
    @Noreply-NFAPReviewGr-3 4 місяці тому +1

    Is it the community version that you are using?

  • @kundankumar0
    @kundankumar0 6 місяців тому

    Great Explanation

  • @ruthokoduwa6837
    @ruthokoduwa6837 5 місяців тому

    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

  • @zhack2395
    @zhack2395 2 місяці тому

    How do I unit test? sorry just a beginner.

  • @rubinrodriguez6185
    @rubinrodriguez6185 5 місяців тому +1

    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  5 місяців тому

      Check your dbcontext file if you have added the students property

  • @seemahashim7000
    @seemahashim7000 9 місяців тому

    Very Good Tutorial

  • @edsonferraz1
    @edsonferraz1 Місяць тому

    Excellent video, congratulations Sameer! Do you help me? A need include the photo of student in DB. You can give me an example code to make this, please.

  • @helvecioguimaraes
    @helvecioguimaraes 4 місяці тому +1

    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  4 місяці тому

      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  4 місяці тому

      Here's a coupon for you AUG2024

  • @ascodes3461
    @ascodes3461 5 місяців тому

    Thank You Very Much Man 😍😊

  • @paulantonibriceno3023
    @paulantonibriceno3023 9 місяців тому +1

    Thank you so much Sameer, you were incredible :')

  • @saifullahkhan8116
    @saifullahkhan8116 24 дні тому

    Button is not working ? Why? i have created two times but nothing Appear on web?

  • @bhaktipande4576
    @bhaktipande4576 10 місяців тому

    Very easy to understand.

  • @luisfernandodeolazabalsche3317
    @luisfernandodeolazabalsche3317 11 місяців тому

    Hello, thank you very much for the video, I wanted to ask you if you have any crud with pagination?

  • @matsoft.oficial
    @matsoft.oficial 7 місяців тому

    GRACIAS POR COMPARTIR TUS CONOCIMIENTOS ... LIKE

  • @MohammedMisselmany
    @MohammedMisselmany 2 місяці тому

    thx mate, realy good tutorial

    • @MohammedMisselmany
      @MohammedMisselmany 2 місяці тому

      almost finished with my assignment coz of u, thanks a lot

  • @赛尼木
    @赛尼木 3 місяці тому

    thx I finished this.

  • @atirah14
    @atirah14 11 місяців тому +2

    Can you do a tutorial in blazor server and webassembly or blazor web app

  • @M_Tarenijr
    @M_Tarenijr Місяць тому

    I creat that project but i lag some where i can't find out my problem. Sir can you guide me

  • @no-han
    @no-han 4 місяці тому

    good video for beginer

  • @hsegol4257
    @hsegol4257 7 місяців тому

    Why we are using http get and post even for updating and deleting. Why we didn't use put and delete http verbs

  • @mohdarwazali3743
    @mohdarwazali3743 Місяць тому

    I want to learn about migration and seeding data. With SQLITE

  • @rajkumarkasaraveni
    @rajkumarkasaraveni 9 місяців тому

    Nice Explanation...

  • @saroshwadia
    @saroshwadia 11 місяців тому +2

    Great video, please create something similar with Blazor .Net 8 using SSR Thx 🙂

  • @oyldrr
    @oyldrr 7 місяців тому

    Dünkü etkinlik kötü olsa da ülkenin adını kurtardın. 👏

  • @amishasharma348
    @amishasharma348 8 місяців тому +2

    add-migrarion m error aa rha hai...commandnotfound... What i do

    • @inshaqamar2680
      @inshaqamar2680 4 місяці тому

      Please explain it. I also got a problem in migration

  • @yogiswara19
    @yogiswara19 4 місяці тому

    Thank you brother!

  • @aspirees2945
    @aspirees2945 9 місяців тому

    Thank you for the video

  • @edsonferraz1
    @edsonferraz1 Місяць тому

    You Get more one subscriber.

  • @charleswanjohi1352
    @charleswanjohi1352 7 місяців тому

    Goood Job. Can you provide a video on entity relationships?

  • @jayjorneypua8174
    @jayjorneypua8174 11 місяців тому

    I kept doing save but its not showing the details that I input to the form back to the viewModel. Why is that?

  • @AliOmer-ho1xp
    @AliOmer-ho1xp 7 місяців тому

    hi thank you Dr.Sameer
    there is problem when Edit the guid return zeroes 000 00000 000 0000
    what should i check

    • @SameerSaini
      @SameerSaini  7 місяців тому

      Hi , can you tell me what line of code returns you those 0s

  • @zeeshanahmad-jf1pu
    @zeeshanahmad-jf1pu 6 місяців тому +1

    i have a error on line 63 of students controller (viewModel.Id) .saying viewModel.Id is not null here . CS1503 cannot convert from System.Guid to System.Threading.CancellationToken

    • @IjazAhmad-wv9qx
      @IjazAhmad-wv9qx 6 місяців тому

      i also faced same, then i fixed it .

  • @palprerana934
    @palprerana934 27 днів тому

    Sir I am getting problem in database connection

  • @ronaldjohnson4470
    @ronaldjohnson4470 11 місяців тому +2

    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?

  • @aymenbachiri-yh2hd
    @aymenbachiri-yh2hd 2 місяці тому

    Thank you so much

  • @geepy5708
    @geepy5708 11 місяців тому +3

    I'm yet to see an mvc project with authentication

    • @hammodh500
      @hammodh500 11 місяців тому

      u can select individual accounts when creating the project to have registration, login, logout, forgot password and email confirmation

  • @user-yh2vq3vc8n
    @user-yh2vq3vc8n 10 днів тому

    Wow thanks alot

  • @rjstudiocreation3437
    @rjstudiocreation3437 10 місяців тому

    great explanation

  • @starsonearth8952
    @starsonearth8952 5 місяців тому

    please do a video on how to add validation in this form

  • @Login-it9sq
    @Login-it9sq 10 місяців тому

    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

  • @hammodh500
    @hammodh500 11 місяців тому

    the delete button doesn't work i have the same syntax as u

  • @justnazmus8140
    @justnazmus8140 11 місяців тому

    great video sameer.

  • @niahkustaa995
    @niahkustaa995 5 місяців тому

    the best thank you

  • @poojithapalagani6352
    @poojithapalagani6352 10 місяців тому

    Updating command that time I am getting index 0 error who can I solve please help me out