CRUD Operations using ASP.NET Core MVC, Entity Framework and SQL Server | Create Read Update delete

Sdílet
Vložit
  • čas přidán 25. 07. 2024
  • How to perform CRUD operations using ASP.NET MVC and Entity Framework Core. How to connect to SQL Server using Entity Framework and ASP.NET Core Web Application (Model-View-Controller). How to perform CRUD operations using EF and SQL Server Database. How to upload images to ASP.NET.
    ###########################
    Source Code on Patreon : / crud-operations-99301298
    Full MVC Course on Udemy : www.udemy.com/course/aspnet-c...
    Other Udemy Course :
    ASP.NET with Razor Pages : www.udemy.com/course/aspnet-c...
    ASP.NET Web API : www.udemy.com/course/build-as...
    React JS Course : www.udemy.com/course/build-co...
    #########################
    Video Content
    (00:00) Introduction
    (01:15) Create Project and Database
    (04:11) Install EF Packages
    (06:04) Create and Register ApplicationDbContext
    (08:50) Create Product Model
    (10:35) Create and Fill the Database Table
    (14:07) Read Products
    (23:22) Create ProductDto Model
    (25:44) Create Products - Create the form
    (31:39) Create Product - Save Product
    (38:02) Update Product - Read Details
    (44:43) Update Product - Update Details
    (49:07) Delete Product

Komentáře • 40

  • @olusegunadeoye6257
    @olusegunadeoye6257 Před 2 měsíci

    Wow, kudos to you. This is short, precise, and beginner-friendly. Touching the area of how to upload & manipulate images makes this tutorial outstanding. I love it.

  • @aadhiganegoda7298
    @aadhiganegoda7298 Před 4 měsíci +3

    Really Useful.
    This was the only video I found that explained Image Uploading that simple.
    Thank you

  • @riadhabaidi4534
    @riadhabaidi4534 Před 3 měsíci +3

    Many thanks from Tunisia for your nice explanation

  • @maviyomathobela8837
    @maviyomathobela8837 Před 24 dny +1

    This was extremely helpful. Much appreciated.

  • @haiangho927
    @haiangho927 Před měsícem

    Thank you. The lecture is so good!

  • @chernirayen8020
    @chernirayen8020 Před měsícem

    best description zeyd m3ana 😍

  • @waleilulu
    @waleilulu Před 4 měsíci +1

    Vey useful!!! It helps a lot. I am expecting you to make another video by using scaffold to do CRUD.

  • @sulagnapriyadarsinisahoo406
    @sulagnapriyadarsinisahoo406 Před měsícem +1

    Thank you .This video helps me alot thank for your effort 🎉🎉🎉

  • @reachoutrads_1921
    @reachoutrads_1921 Před 22 dny

    Hats off to you Sir. It was extremely useful and helped me to take a decision if I could switch my career .Net core. Thanks a Lot Sir.

  • @saurabhmagar08
    @saurabhmagar08 Před 6 dny

    Good Explanation Thanks

  • @garrychauhan7592
    @garrychauhan7592 Před měsícem

    thanxx sir this task will be completed now next

  • @ali_murat_plt
    @ali_murat_plt Před 3 měsíci

    thanks for all bro.

  • @nitro-boy09
    @nitro-boy09 Před 29 dny +1

    It would be great to include Repository classes, Dependency Injection and Unit Test class in the future.

  • @Zola2010
    @Zola2010 Před 4 měsíci +1

    Thank you for the work you do .
    Can you please make an example with the relationship between the tables of the database?

  • @lulu-xp7mf
    @lulu-xp7mf Před 11 dny

    thank you man

  • @mejdikarmani7249
    @mejdikarmani7249 Před měsícem

    Very Interesting... Would it be possible to prepare a video on Blazor?

  • @ibnurayhan4165
    @ibnurayhan4165 Před hodinou

    How to fill data base with sql query?

  • @ramzanboatofficial5203

    Actual image element cannot display on create view ?

  • @bishambashir3915
    @bishambashir3915 Před 4 měsíci +2

    hello brother
    how are you
    will you help in my asp . net project?

  • @PauloRogerioFreire
    @PauloRogerioFreire Před 2 měsíci +2

    Blazor Server ???

  • @lokeshbomma1731
    @lokeshbomma1731 Před 14 dny

    Unable to edit the image when image is updated the image pic not reflected indicating blank

  • @ramzanboatofficial5203

    Validation is not working for me

  • @AliRaza-zy1zk
    @AliRaza-zy1zk Před měsícem

    How did it pass id in edit ??? Submit will send dto but where is id parameter?
    Also update call should be put

    • @codinblue1
      @codinblue1  Před měsícem

      it is already in the url

    • @AliRaza-zy1zk
      @AliRaza-zy1zk Před měsícem +1

      ​@@codinblue1 Oh ok got it.... Thanks :)

  • @UmarKhan-mv6zs
    @UmarKhan-mv6zs Před 3 měsíci

    Hi sir i have followed all the way but sitl getting erors can you please provide me the source code of this project
    am waiting Thanks

    • @codinblue1
      @codinblue1  Před 3 měsíci

      source code link in the description

  • @Moon-nc9xd
    @Moon-nc9xd Před 3 měsíci +1

    Im not able to upload the image, can someone help me.

    • @mijan-karim
      @mijan-karim Před 2 měsíci

      Use this -
      string imageFullPath = Path.Combine(environment.WebRootPath, "products", newFileName);
      using (var stream = new FileStream(imageFullPath, FileMode.Create));

    • @itz_rahul_172
      @itz_rahul_172 Před měsícem

      kya problem hai

  • @no-han
    @no-han Před 11 dny

    can u give me sql file ?

  • @miguelhenriquemartinscarva3019

    Hi Bro, I Dont Know Why, But This Code Didnt Return anything , Didnt Saved the Product : [HttpPost]
    public IActionResult Create(ProductDto productdto)
    {
    if(productdto.ImageFileName == null)
    {
    ModelState.AddModelError("Imagem", "Imagem obrigatória");
    }
    if(!ModelState.IsValid)
    {
    return View(productdto);
    }
    return RedirectToAction("Index","Products");
    }