Example #1
0
 XiaoQuModel IXiaoQuServices.GetModelById(int id)
 {
     XiaoQuData XiaoQu = new XiaoQuData();
     return XiaoQu.GetModelById(id);
 }
Example #2
0
 /// <summary>
 /// 更新数据
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public int Update(XiaoQuModel model)
 {
     XiaoQuData XiaoQu = new XiaoQuData();
     return XiaoQu.Update(model);
 }
Example #3
0
 /// <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);
 }
Example #4
0
 /// <summary>
 /// 增添数据
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public int Add(XiaoQuModel model)
 {
     XiaoQuData XiaoQu = new XiaoQuData();
     return XiaoQu.Add(model);
 }
Example #5
0
 /// <summary>
 /// 获取数据列表
 /// </summary>
 string IXiaoQuServices.TableQuery()
 {
     XiaoQuData XiaoQu = new XiaoQuData();
     List<XiaoQuModel> list = XiaoQu.DataList();
     return JsonConvert.SerializeObject(list);
 }
Example #6
0
 /// <summary>
 /// 获取数据列表
 /// </summary>
 string IXiaoQuServices.Query()
 {
     XiaoQuData XiaoQu = new XiaoQuData();
     DataTable list = XiaoQu.SelectQuery();
     return JsonConvert.SerializeObject(list);
 }