示例#1
0
 public List <ProductCategoryMaster> GetList()
 {
     return(productcategoryDAL.GetList());
 }
示例#2
0
        /*
         *      /// <summary>
         *      /// 得到一个对象实体,从缓存中
         *      /// </summary>
         *      public Mofang.Model.ProductCategory GetModelByCache(int ProductCategoryId)
         *      {
         *
         *              string CacheKey = "ProductCategoryModel-" + ProductCategoryId;
         *              object objModel = Mofang.Common.DataCache.GetCache(CacheKey);
         *              if (objModel == null)
         *              {
         *                      try
         *                      {
         *                              objModel = dal.GetModel(ProductCategoryId);
         *                              if (objModel != null)
         *                              {
         *                                      int ModelCache = Mofang.Common.ConfigHelper.GetConfigInt("ModelCache");
         *                                      Mofang.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
         *                              }
         *                      }
         *                      catch{}
         *              }
         *              return (Mofang.Model.ProductCategory)objModel;
         *      }*/

        /// <summary>
        /// 获得数据列表
        /// </summary>
        public DataSet GetList(string strWhere)
        {
            return(dal.GetList(strWhere));
        }