0

I know this question has been asked many times however LINQ itself seems confusing sometimes. And I really needed to understand how to utilize LINQ and what happens inside.

My sample project contains following entities: Movies, Entities, MovieEntitiesLink

Is there a way in C# LINQ query using which I can update properties right when the object is projected to output list ?

Sample code:

var finalResult = (from me in MovieEntitiesLink
                  join m in Movies on me.MovieId equals m.Id
                  join e in Entities on me.EntityId equals e.Id
                  //me => me.Movie = m, me.Entity = e
                  select me);

Edit : The answer linked here for duplicate was a bit confusing however the most original question for which all these questions were marked duplicate, did the job for me.

Akshay Raut
  • 413
  • 5
  • 19

0 Answers0