コード例 #1
0
        /// <summary>
        /// 获取产品品牌
        /// </summary>
        /// <returns></returns>
        public static IEnumerable <ProductBrand> SelectProductBrand(string type)
        {
            var dt = DALPromotion.SelectProductBrand(type);

            if (dt == null || dt.Rows.Count <= 0)
            {
                return(new List <ProductBrand>());
            }
            return(dt.Rows.Cast <DataRow>().Select(row => new ProductBrand(row)));
        }