Page 1 of 1

Getting the name of the Id property for a single multiplicity navigation property

Posted: Wed 27 Jun 2012 12:16
by Torinth
Hi, I am trying to figure out in the entity developer template objects how to get the id property that is associated with a navigation property on the same object. I want to put an attribute on those properties with the name of the related id property.

I have the EntityRelationProperty object, what properties/methods/whatever can I use to figure out the name of the id property?

Thanks

Re: Getting the name of the Id property for a single multiplicity navigation property

Posted: Wed 27 Jun 2012 14:12
by Torinth
Nevermind, I figured it out. If I use relationProperty.OppositeRelationProperty.Properties I get the id properties that represent the instance property on the type