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

Discussion of open issues, suggestions and bugs regarding Entity Developer - ORM modeling and code generation tool
Post Reply
Torinth
Posts: 4
Joined: Wed 13 Jun 2012 20:32

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

Post by Torinth » Wed 27 Jun 2012 12:16

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

Torinth
Posts: 4
Joined: Wed 13 Jun 2012 20:32

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

Post by Torinth » Wed 27 Jun 2012 14:12

Nevermind, I figured it out. If I use relationProperty.OppositeRelationProperty.Properties I get the id properties that represent the instance property on the type

Post Reply