Method: Frodo::Schema#navigation_properties
- Defined in:
- lib/frodo/schema.rb
#navigation_properties ⇒ Hash<Hash<Frodo::NavigationProperty>>
Returns a hash for finding an association through an entity type’s defined NavigationProperty elements.
90 91 92 93 94 95 96 97 98 |
# File 'lib/frodo/schema.rb', line 90 def ||= .xpath('//EntityType').map do |entity_type_def| entity_name = entity_type_def.attributes['Name'].value [ entity_name, (entity_name) ] end.to_h end |