.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
Post a Comment