But the Model is created by C# Entity Framework Power tool and I checked the Image table mapping class which has mapping for primary key defined...
Sent from my iPad On Mar 22, 2013, at 3:07 AM, Jiri Cincura <disk...@cincura.net> wrote: > On Fri, Mar 22, 2013 at 3:05 AM, Muthu Annamalai > <muthuannama...@sbcglobal.net> 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 > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > _______________________________________________ > Firebird-net-provider mailing list > Firebird-net-provider@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/firebird-net-provider ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ Firebird-net-provider mailing list Firebird-net-provider@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/firebird-net-provider