0

I have to support linq code that looks like the one below

        public async Task<IEnumerable<UserProfiles>> GetUserProfileByIdAsync(IEnumerable<string> ids)
        {
          .AsQueryable()
          .Where(sea => ids.Contains(sea.UserId))
          .Distinct()
          .ToListAsync()
        }

I am only used to writing my linq like this

        var query = 
          from car in cars
          join manufacturer in manufacturers ....

what is the difference between the two queries and any link to tutorials where one can learn how to write the first query with the dots will be apreciated.

Baba
  • 2,059
  • 8
  • 48
  • 81

0 Answers0