示例#1
0
        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);
        }
示例#2
0
        // 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);
        }