From: Jiri C. <di...@ci...> - 2013-03-22 08:08:01
|
On Fri, Mar 22, 2013 at 3:05 AM, Muthu Annamalai <mut...@sb...> wrote: > > System.Data.Entity.Edm.EdmEntityType: EntityType ‘Image’ has no key > defined. Define the key for this EntityType. > > System.Data.Entity.Edm.EdmEntitySet: EntityType EntitySet ‘Images is > based on the type ‘Image’ that has no key defined. Define the key for this > EntityType. I think this is pretty clear. You didn't specified the key(s) for your entity. > All the tables in our database has primary key defined. And all the Which is not relevant here. The error is about model, not database. > primary keys have Description set to #PK_GEN#. Any clue to fix this error is #PK_GEN# is used only when you *generate* EDM. -- Jiri {x2} Cincura (x2develop.com founder) http://blog.cincura.net/ | http://www.ID3renamer.com |