mardi 5 juillet 2016

How get Key of Object in Entity framework 6

Entity framework 4 shows the key in the following command

                int? ID = ObjectContext.ChangeTrackingGetEntityID(item.EntityKey.EntitySetName, item.EntitySet.ElementType.KeyMembers[0].Name).FirstOrDefault();

I could not find a way to show the key هد Entity framework 6





Aucun commentaire:

Enregistrer un commentaire