public static IIncludedResourcesBuilder AddInclude <TFromResource, TToResource>(this IIncludedResourcesBuilder includedResourcesBuilder, params IToManyIncludedResources <TFromResource, TToResource>[] toManyIncludedResourcesCollection) where TFromResource : class where TToResource : class { Contract.Requires(includedResourcesBuilder != null); return(includedResourcesBuilder.AddInclude(toManyIncludedResourcesCollection.AsEnumerable())); }
public static IIncludedResourcesBuilder AddInclude <TFromResource, TToResource>(this IIncludedResourcesBuilder includedResourcesBuilder, params IToOneIncludedResource <TFromResource, TToResource>[] toOneIncludedResourceCollection) where TFromResource : class, IResource where TToResource : class, IResource { Contract.Requires(includedResourcesBuilder != null); return(includedResourcesBuilder.AddInclude(toOneIncludedResourceCollection)); }
public static IIncludedResourcesBuilder AddInclude(this IIncludedResourcesBuilder includedResourcesBuilder, params IToManyIncludedResources[] toManyIncludedResourcesCollection) { Contract.Requires(includedResourcesBuilder != null); return(includedResourcesBuilder.AddInclude(toManyIncludedResourcesCollection.AsEnumerable())); }