.net - Weird linq-to-sql error -


the error happens in line:

oldperson.personserial = context.db.persons.max(function(p) p.personserial) + 1 

could not find key member 'id' of key 'id' on type 'nationality'. key may wrong or field or property on 'nationality' has changed names.

there's person table containing foreign key nationality table. checked column names match

what might cause of error?

looks sharing base class partial linq generated classes causing issue.

i removed inheritance base class , worked. no idea why though!


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -