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

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