/// <summary>
 /// 初始化 <see cref="RelationshipMetadata"/> 类的新实例。
 /// </summary>
 /// <param name="thisType"></param>
 /// <param name="otherType"></param>
 /// <param name="style"></param>
 /// <param name="source"></param>
 /// <param name="keys"></param>
 internal RelationshipMetadata(Type thisType, Type otherType, RelationshipStyle style, RelationshipSource source, IEnumerable <RelationshipKey> keys)
 {
     ThisType  = thisType;
     OtherType = otherType;
     Style     = style;
     Keys      = keys.ToReadOnly();
     Source    = source;
 }
 public Relationship(CoreTweet.Relationship cRelationship)
 {
     Target = new RelationshipTarget(cRelationship.Target);
     Source = new RelationshipSource(cRelationship.Source);
 }
 public Relationship(Mastonet.Entities.Relationship cRelationship)
 {
     Target = new RelationshipTarget();
     Source = new RelationshipSource(cRelationship);
 }