public IIncludedResourcesBuilder AddToMany <TFromResource, TToResource>(IToManyResourceLinkageSource <TFromResource, TToResource> toManyResourceLinkageSource) where TFromResource : class, IResource where TToResource : class, IResource { Contract.Requires(toManyResourceLinkageSource != null); var toManyResourceLinkageBuilder = this.ToMany(toManyResourceLinkageSource); toManyResourceLinkageBuilder.ToManyEnd(); return(this); }
public IToManyResourceLinkageBuilder <TToResource> ToMany <TFromResource, TToResource>(IToManyResourceLinkageSource <TFromResource, TToResource> toManyResourceLinkageSource) where TFromResource : class, IResource where TToResource : class, IResource { Contract.Requires(toManyResourceLinkageSource != null); var toManyResourceLinkage = toManyResourceLinkageSource.GetToManyResourceLinkage(); var toManyResourceLinkageBuilder = new ToManyResourceLinkageBuilder <TFromResource, TToResource>(this, this.DomDocument, toManyResourceLinkage); return(toManyResourceLinkageBuilder); }