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

            return(ProductEvent.FetchAllByProductId(site, productId));
        }
Example #2
0
        public static System.String GetTableName()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

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

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

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

            return(ProductEvent.Create(site));
        }