I'm quite new to using Entity Framework and I keep running into this problem where my code can't compile. The error message I get is:
The type arguments for method 'System.Linq.Queryable.GroupJoin(System.Linq.IQueryable, System.Collections.Generic.IEnumerable, System.Linq.Expressions.Expression>, System.Linq.Expressions.Expression>, System.Linq.Expressions.Expression,TResult>>)' cannot be inferred from the usage. Try specifying the type arguments explicitly.
I've done some search and found some similar problems but nothing has helped me fix my problem. I'm just trying to output something simple for debugging purposes here is the code I have at the moment:
var result = _context.Set<User>()
.Where(user => user.GraphMeetingStatistics && user.Id == userId)
.GroupJoin(_context.Set<Meeting>()
.Where(meeting => meeting.UserId == userId),
user => user.Id,
meeting => meeting.Guid,
(user, meeting) => meeting);
I'd appreciate any help with this error
user.Idandmeeting.Guidof the same type? - Thomas Levesquemeeting.UserId == userId- Thomas Levesqueuser.Idandmeeting.UserId. - Gert Arnold