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