.Net5 CRUD using Multiple repositories from Single Controller

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ต.ค. 2024
  • Asp.Net Core CRUD using Multiple repositories from Single Controller
    In this Video I have a created a Product Master CRUD using Asp.net core and EF Core.
    This is an Excellent ASP.Net Core CRUD Application with many fields. and the beauty of this application is, it has 5 foreign key fields. and all these foreign fields are displayed as select list controls in the user interface page.
    So You will learn how to populate multiple select lists from different tables from this video.
    Then, you will also learn to use the ForeignKey Attribute in Entity Framework Core to configure the Foreign Key Property.
    We use the Foreign Key to define the relationship between the tables of the database.
    For Example, In Our Inventory Manager Project, which we are doing for couple of months now. Every Product has a Measurement of Unit, BrandID, CategoryID, ProductGroupID etc.
    Our Product table is in relationship with many tables inclusive of Unit , Category, Brand , ProductGroup and ProductProfile.
    I mean, Foreign key Ids will be stored in the product table and the master values will be stored
    in the primary tables like units, categories.
    I have used multiple repositories in the Product Controller. Because while designing
    an app using repository pattern, the back end data of the entity must be handled only by the corresponding repository of the entity.
    in our case , the units table should be handled only by unitrepository and
    likewise the category table should be managed only by the category repository.
    But our Productcontroller needs data from many tables like units,categories, brands etc.
    In Here I have explained very well on how I solved this problem.
    To find and learn my solution. please watch the complete video.
    Thanks and Regards,
    Aniz.
    Previous Video
    • ASP .NET Core MVC CRUD...
    Sorting Module link
    • ASP.NET CORE EFCORE MV...
    Playlist Link
    • Asp net core 5 MVC Tut...

ความคิดเห็น • 13

  • @王智立-i8m
    @王智立-i8m 11 หลายเดือนก่อน

    謝謝你,,你很厲害,高手

  • @purnarana9081
    @purnarana9081 2 ปีที่แล้ว

    Very Nice. Thank you.

  • @farrukhazad
    @farrukhazad 2 ปีที่แล้ว

    nice work dear friend , plz upload a video about "How to publish ASP core with Database on IIS " , Thanks for sharing

    • @CodeSbyAniz
      @CodeSbyAniz  2 ปีที่แล้ว

      Sure I will and you are most welcome.

  • @identityAsk
    @identityAsk 2 ปีที่แล้ว

    thank you sir , your very good teacher ... professional ..., if you have a time can you show us how to create and read barcodes. please .. please. 💟💟💟💟💟💟💟

    • @CodeSbyAniz
      @CodeSbyAniz  2 ปีที่แล้ว +1

      you are most welcome. I will try to share some codes. I had done a project for generating barcodes 5 years back. but that was in vb.net. and not in use now. will try to find the source code in my library. Keep following the channel. Thank You.

  • @mubasshirraihan8479
    @mubasshirraihan8479 2 ปีที่แล้ว

    Thank You for making this tutorial. I will be very grateful if you share the source code.

    • @CodeSbyAniz
      @CodeSbyAniz  2 ปีที่แล้ว +1

      Welcome. and you can use this source code th-cam.com/video/ZXynHdk35fU/w-d-xo.html

  • @JahidulIslam-fl6nq
    @JahidulIslam-fl6nq 2 ปีที่แล้ว

    Sir, why product image is not viewed? How can I view it?

    • @CodeSbyAniz
      @CodeSbyAniz  2 ปีที่แล้ว

      Thanks for watching. please watch again. may be you skipped some part.

  • @michaelacevedo1525
    @michaelacevedo1525 2 ปีที่แล้ว

    What is the first video?

    • @CodeSbyAniz
      @CodeSbyAniz  2 ปีที่แล้ว

      there is a play list. and the link of the playlist is in the description. please follow that.