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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Ravi PatelRank #439 · 5.7K reputationPosted May 9, 2016, 8:41 PM EDT
Nilesh Joshi95 reputationPosted May 9, 2016, 11:04 AM EDT
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.