XiaoQuModel IXiaoQuServices.GetModelById(int id) { XiaoQuData XiaoQu = new XiaoQuData(); return XiaoQu.GetModelById(id); }
/// <summary> /// 更新数据 /// </summary> /// <param name="model"></param> /// <returns></returns> public int Update(XiaoQuModel model) { XiaoQuData XiaoQu = new XiaoQuData(); return XiaoQu.Update(model); }
/// <summary> /// 删除数据 /// </summary> /// <param name="model"></param> /// <returns></returns> public int Delete(List<int> ids,XiaoQuModel model=null) { XiaoQuData xiaoqu = new XiaoQuData(); return xiaoqu.Delete(ids); }
/// <summary> /// 增添数据 /// </summary> /// <param name="model"></param> /// <returns></returns> public int Add(XiaoQuModel model) { XiaoQuData XiaoQu = new XiaoQuData(); return XiaoQu.Add(model); }
/// <summary> /// 获取数据列表 /// </summary> string IXiaoQuServices.TableQuery() { XiaoQuData XiaoQu = new XiaoQuData(); List<XiaoQuModel> list = XiaoQu.DataList(); return JsonConvert.SerializeObject(list); }
/// <summary> /// 获取数据列表 /// </summary> string IXiaoQuServices.Query() { XiaoQuData XiaoQu = new XiaoQuData(); DataTable list = XiaoQu.SelectQuery(); return JsonConvert.SerializeObject(list); }