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