示例#1
0
 public int Insert(M_User_Level model)
 {
     if (model.OrderID < 1)
     {
         model.OrderID = DataConvert.CLng(DBCenter.ExecuteScala(TbName, "MAX(OrderID)", ""));
         model.OrderID++;
     }
     return(DBCenter.Insert(model));
 }
示例#2
0
        /// <summary>
        /// 获取等级信息
        /// </summary>
        public M_User_Level GetLevel(int vip)
        {
            if (vip <= 0)
            {
                vip = 1;
            }
            ;
            M_User_Level model = SelModelByLevel(vip);

            if (model == null)
            {
                model = new M_User_Level()
                {
                    Alias = "普通会员"
                };
            }
            return(model);
        }
示例#3
0
 public bool UpdateByID(M_User_Level model)
 {
     return(DBCenter.UpdateByID(model, model.ID));
 }