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); }
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); }