public IRelationshipBuilder <IRelationshipsBuilder <TParentBuilder, TResource>, TResource> Relationship(string rel, Func <TResource, bool> predicate) { Contract.Requires(String.IsNullOrWhiteSpace(rel) == false); var relationshipCollectionBuilder = new RelationshipCollectionBuilder <IRelationshipsBuilder <TParentBuilder, TResource>, TResource>(this, this.ServiceModel, this.DomReadWriteRelationshipsCollection, this.ClrResourceCollection, rel, predicate); return(relationshipCollectionBuilder); }
// PRIVATE METHODS ////////////////////////////////////////////////// #region Methods private IRelationshipBuilder <IRelationshipsBuilder <TParentBuilder> > CreateRelationshipCollectionBuilder(string rel) { Contract.Requires(String.IsNullOrWhiteSpace(rel) == false); var relationshipCollectionBuilder = new RelationshipCollectionBuilder <IRelationshipsBuilder <TParentBuilder> >(this, this.ServiceModel, this.DomReadWriteRelationshipsCollection, this.ClrResourceType, rel); return(relationshipCollectionBuilder); }