public static IToManyIncludedResourcesBuilder <TToResource> Include <TFromResource, TToResource>(this IIncludedResourcesBuilder includedResourcesBuilder, params IToManyIncludedResources <TFromResource, TToResource>[] toManyIncludedResourcesCollection) where TFromResource : class where TToResource : class { Contract.Requires(includedResourcesBuilder != null); return(includedResourcesBuilder.Include(toManyIncludedResourcesCollection.AsEnumerable())); }
// PUBLIC METHODS /////////////////////////////////////////////////// #region Extension Methods public static IToOneIncludedResourceBuilder <TToResource> Include <TFromResource, TToResource>(this IIncludedResourcesBuilder includedResourcesBuilder, params IToOneIncludedResource <TFromResource, TToResource>[] toOneIncludedResourceCollection) where TFromResource : class, IResource where TToResource : class, IResource { Contract.Requires(includedResourcesBuilder != null); return(includedResourcesBuilder.Include(toOneIncludedResourceCollection)); }
public static IToManyIncludedResourcesBuilder Include(this IIncludedResourcesBuilder includedResourcesBuilder, params IToManyIncludedResources[] toManyIncludedResourcesCollection) { Contract.Requires(includedResourcesBuilder != null); return(includedResourcesBuilder.Include(toManyIncludedResourcesCollection.AsEnumerable())); }