I'm using Entity Framework. I need to find a record using its primary key.
I try like this.
tabCom com = db.tabCom.Find(3);
but there is error and it says
'System.Data.Objects.ObjectSet' does not contain a definition for 'Find' and no extension method 'Find' accepting a first argument of type 'System.Data.Objects.ObjectSet' could be found (are you missing a using directive or an assembly reference?)
How to find the data using primary key. what the wrong with my code or Is there is another way?