hi
i am doing using code first approach i getting this error
plz help me
file attached
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ravi PatelPosted May 10, 2016, 12:41 AM
Nilesh JoshiPosted May 9, 2016, 3:04 PM
As per the error description, it seems that you do not have identity/keydefined on the entity class. Please check whether you havecolumn/property named "Id"defined in the Employee class. If you do not have "Id"property or you are using anyotherproperty as key column on Entity, make sureto annotate it with "[Key]" attribute.