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)); }
/// <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); }
public bool UpdateByID(M_User_Level model) { return(DBCenter.UpdateByID(model, model.ID)); }