Module: DynamicsCRM::Metadata::RelationshipMetadata
- Included in:
- EntityMetadata
- Defined in:
- lib/dynamics_crm/metadata/relationship_metadata.rb
Overview
This class is expected to be included with EntityMetadata and supports loading of relationships msdn.microsoft.com/en-us/library/microsoft.xrm.sdk.metadata.relationshipmetadata.aspx
Instance Method Summary collapse
-
#many_to_many ⇒ Object
ManyToManyRelationships => ManyToManyRelationshipMetadata.
-
#many_to_one ⇒ Object
ManyToOneRelationships => OneToManyRelationshipMetadata.
-
#one_to_many ⇒ Object
OneToManyRelationships => OneToManyRelationshipMetadata.
Instance Method Details
#many_to_many ⇒ Object
ManyToManyRelationships => ManyToManyRelationshipMetadata
34 35 36 37 38 39 40 41 42 43 |
# File 'lib/dynamics_crm/metadata/relationship_metadata.rb', line 34 def many_to_many return @many_to_many if @many_to_many @many_to_many = [] relationship_element = "./d:ManyToManyRelationships/d:ManyToManyRelationshipMetadata" @document.get_elements(relationship_element).each do || @many_to_many << ManyToManyRelationship.new(self, ) end @many_to_many end |
#many_to_one ⇒ Object
ManyToOneRelationships => OneToManyRelationshipMetadata
21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/dynamics_crm/metadata/relationship_metadata.rb', line 21 def many_to_one return @many_to_one if @many_to_one @many_to_one = [] relationship_element = "./d:ManyToOneRelationships/d:OneToManyRelationshipMetadata" @document.get_elements(relationship_element).each do || @many_to_one << OneToManyRelationship.new(self, ) end @many_to_one end |
#one_to_many ⇒ Object
OneToManyRelationships => OneToManyRelationshipMetadata
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/dynamics_crm/metadata/relationship_metadata.rb', line 8 def one_to_many return @one_to_many if @one_to_many @one_to_many = [] relationship_element = "./d:OneToManyRelationships/d:OneToManyRelationshipMetadata" @document.get_elements(relationship_element).each do || @one_to_many << OneToManyRelationship.new(self, ) end @one_to_many end |