c# - Trying to join AspNetUsers table in LINQ query results in Type inference failed in the call to 'Join' -


why not able join aspnetusers table in linq query ?

var query = (from o in _context.organisations                          join u in _context.users on o.organisationid equals u.organisationid                          u.id == userid                          select new budgetentryvm                          {                              organisationid = o.organisationid,                              organisationname = o.name                          }).tolist(); 

i error on join :

the type of 1 of expressions in join clause incorrect.

type inference failed in call 'join'.

how else do ?

the error

the type of 1 of expressions in join clause incorrect.

type inference failed in call 'join'.

states there no acceptable conversions in place given types, in case: o.organisationid , u.organisationid.

check types , see don't match.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -