Esempio n. 1
0
 /// <summary>
 /// 保存实体数据.
 /// </summary>
 public void Save(OrgAppendModel model)
 {
     if (model.OrgId == 0)
     {
         DBProvider.OrgAppendDAO.Add(model);
     }
     else
     {
         DBProvider.OrgAppendDAO.Update(model);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// 更新一条数据.
 /// </summary>
 public void Update(OrgAppendModel model)
 {
     DefaultMapper.GetMapper().Update("Org_AppendInfo.Update", model);
 }
Esempio n. 3
0
 /// <summary>
 /// 增加一条数据.
 /// </summary>
 public void Add(OrgAppendModel model)
 {
     DefaultMapper.GetMapper().Insert("Org_AppendInfo.Insert", model);
 }