示例#1
0
 public void AddRelation(RelationMetadata relationMetadata)
 {
     FillAttributeAndRelationBase(relationMetadata);
     _relationDictionary.Add(relationMetadata.Name, relationMetadata);
     AddMemberInternal(relationMetadata);
     Relations.Add(relationMetadata);
 }
示例#2
0
 public bool TryGetRelation(string name, out RelationMetadata relation)
 {
     return(_relationDictionary.TryGetValue(name, out relation));
 }