Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 3
0
        public static IIncludedResourcesBuilder AddInclude(this IIncludedResourcesBuilder includedResourcesBuilder, params IToManyIncludedResources[] toManyIncludedResourcesCollection)
        {
            Contract.Requires(includedResourcesBuilder != null);

            return(includedResourcesBuilder.AddInclude(toManyIncludedResourcesCollection.AsEnumerable()));
        }