LINQ in C#.Net made easy! - PART 3 : Joins in LINQ | Inner Join | Group Join | Left Outer Join

Поделиться
HTML-код
  • Опубликовано: 21 сен 2024

Комментарии • 25

  • @AfkL-mo5pe
    @AfkL-mo5pe Год назад

    Thank you very much !!! You video helped me to finally understand LINQ !!!

  • @kimicheng5611
    @kimicheng5611 2 года назад +1

    (1) inner join = join
    non-matching keys will be dropped
    e.g.
    Max --> {Thomas, Luise}
    (2) group join = join + into
    non-matching keys will be kept in the key list (Ex. Rohan in 22:58)
    e.g.
    Max --> {Thomas, Luise}
    Rohan --> {}

    (3) left join = join + into + DefaultIfEmpty()
    non-matching keys will be kept in the key list + an assigned value for every non-matching key
    e.g..
    Max --> {Thomas, Luise}
    Rohan --> {}
    After using DefaultIfEmpty()
    Max --> {Thomas, Luise}
    Rohan --> Null
    After using null? "No Students" : students.Name
    Max --> {Thomas, Luise}
    Rohan --> "No students"
    I can be wrong it's just my understanding after watching this video

  • @zdkcy2510
    @zdkcy2510 4 года назад +1

    Thanks! Thanks! Thanks! and Many Thanks! I hope that you are in Best of Health!

    • @CODELLIGENT
      @CODELLIGENT  4 года назад

      Thanks a lottt..
      Yes I am very much fine. Hope the same with you. :)

  • @psychologically_shaken
    @psychologically_shaken 3 года назад +1

    You are a lifesaver! Thanks so much

  • @fonskeee
    @fonskeee Год назад

    When using the method linq for the left outer join it is GroupBy instead of join, otherwhise the compiler want recognize the DefaultIfEmpty() method.

  • @robimegu3712
    @robimegu3712 2 года назад

    You helped me a lot! Thank you so much!

  • @AfrikanBerry
    @AfrikanBerry 2 года назад

    Thank you alot...please keep making the vids...

  • @bunnyworld5399
    @bunnyworld5399 4 года назад

    Hi codelligent . Ur Awesome.. clear explanation. U won my subscription.
    Keep do it

  • @akatwiggy
    @akatwiggy 2 года назад

    Helped a lot! Thanks!

  • @Tyronekong
    @Tyronekong Год назад

    Great video thank you.

  • @sandeepreddy475
    @sandeepreddy475 2 года назад

    Keep up the good work..!

  • @thechrisgreen
    @thechrisgreen 2 года назад

    Is there a way to select all the fields in the join without actually listing them all out manually? Something like SELECT * in SQL.

  • @jaysinghsolanki7094
    @jaysinghsolanki7094 3 года назад +1

    how to use joins in web api entity framework ?

    • @CODELLIGENT
      @CODELLIGENT  3 года назад

      LINQ joins work the same way for general Lists or on List of entities. The same concept/syntax you can apply there.
      Only difference is you will be iterating through an object type (depending on your entity), and when you want to put some conditions inside, you will be doing it using the entity's properties. 😊

    • @jaysinghsolanki7094
      @jaysinghsolanki7094 3 года назад

      @@CODELLIGENT if possible can you please upload a video or contact me at jaysinghsolanki65@gmail.com i really need to learn this.

  • @Rahulsingh-rm4iz
    @Rahulsingh-rm4iz 2 года назад

    bro make more videos if it is possible for you.

  • @gio_hdz
    @gio_hdz 2 года назад

    Where is project file?