/// <summary> /// 快速增加一条数据 /// </summary> public int Add(string access_token) { Model.weixin_access_token model = new Model.weixin_access_token(); model.access_token = access_token; model.count = 1; model.expires_in = 1200; //1200秒 model.add_time = DateTime.Now; return(dal.Add(model)); }
/// <summary> /// 增加一条数据 /// </summary> public int Add(Model.weixin_access_token model) { return(dal.Add(model)); }