示例#1
0
        /// <summary>
        ///     Retrieves a collection of <see cref="!:RelatedProductModel" /> instances.
        /// </summary>
        /// <param name="salesChannelId">
        ///     The value which identifies the <see cref="!:RelatedProductModel" /> instances to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:RelatedProductModel" /> instances that match the specified <paramref name="salesChannelId" />.
        /// </returns>
        public static IEnumerable <Consensus.Learning.RelatedProduct> FetchAllBySalesChannelId(System.String salesChannelId)
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(RelatedProduct.FetchAllBySalesChannelId(site, salesChannelId));
        }
示例#2
0
        public static System.String GetTableName()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(RelatedProduct.GetTableName(site));
        }
示例#3
0
        /// <summary>
        ///     Retrieves all instances of the <see cref="!:RelatedProductModel" /> class.
        /// </summary>
        /// <returns>
        ///     An enumerable collection of <see cref="!:RelatedProductModel" /> instances.
        /// </returns>
        public static IEnumerable <Consensus.Learning.RelatedProduct> FetchAll()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(RelatedProduct.FetchAll(site));
        }
示例#4
0
        /// <summary>
        ///     Retrieves a specific <see cref="!:RelatedProductModel" /> instance.
        /// </summary>
        /// <param name="id">
        ///     The unique value which distinctly identifies the <see cref="!:RelatedProductModel" /> instance to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:RelatedProductModel" /> instance that matches the specified <paramref name="id" />; or null, if no matching instance can be found.
        /// </returns>
        public static Consensus.Learning.RelatedProduct FetchById(System.Int32 id)
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(RelatedProduct.FetchById(site, id));
        }
示例#5
0
        /// <summary>
        ///     Creates a new <see cref="!:RelatedProductModel" /> instance.
        /// </summary>
        /// <returns>
        ///     A newly instantiated <see cref="!:RelatedProductModel" /> instance.
        /// </returns>
        public static Consensus.Learning.RelatedProduct Create()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(RelatedProduct.Create(site));
        }