title: The type arguments cannot be inferred from the query in linq c# query
body: <p>Below is my piece of linq code</p>
  
  <pre><code>mTimeslot = (from users in mContext.MFUsers
               join tblTime in mContext.tblTimeslots on users.UserID equals tblTime.varAdvisorId
               join tblApp in mContext.tblAppointments on new { varAdvisorId=users.UserID,tblTime.varSlotId} equals new {tblApp.varAdvisorId, varSlotId = tblApp.varSlotId}
               select new Timeslot
               {
                   varAdvisorId = users.UserID,
                   varAdvisorName = users.varUserName
               }).FirstOrDefault();
  </code></pre>
  
  <p>In the second join I'm getting an error saying the type argument cannot be inferred from the query.</p>
  
  <p><code>tblTime.varSlotId</code> is an integer while <code>tblApp.varSlotId</code> is a nullable integer. I can figure out that the error is in the above mentioned column. But I'm unable to convert the integer value to a nullable integer as both the columns have the name of <code>varSlotId</code>.</p>