コード例 #1
0
        public IIncludedResourcesBuilder AddToMany <TFromResource, TToResource>(IToManyResourceLinkageCollectionSource <TFromResource, TToResource> toManyResourceLinkageCollectionSource)
            where TFromResource : class, IResource
            where TToResource : class, IResource
        {
            Contract.Requires(toManyResourceLinkageCollectionSource != null);

            var toManyResourceLinkageBuilder = this.ToMany(toManyResourceLinkageCollectionSource);

            toManyResourceLinkageBuilder.ToManyEnd();
            return(this);
        }
コード例 #2
0
        public IToManyResourceLinkageBuilder <TToResource> ToMany <TFromResource, TToResource>(IToManyResourceLinkageCollectionSource <TFromResource, TToResource> toManyResourceLinkageCollectionSource)
            where TFromResource : class, IResource
            where TToResource : class, IResource
        {
            Contract.Requires(toManyResourceLinkageCollectionSource != null);

            var toManyResourceLinkageCollection = toManyResourceLinkageCollectionSource.GetToManyResourceLinkageCollection();
            var toManyResourceLinkageBuilder    = new ToManyResourceLinkageCollectionBuilder <TFromResource, TToResource>(this, this.DomDocument, toManyResourceLinkageCollection.SafeToReadOnlyCollection());

            return(toManyResourceLinkageBuilder);
        }