示例#1
0
 /// <summary>
 /// 更新费用性质
 /// </summary>
 /// <param name="cInfo">实体</param>
 public void Update(CostPropertyInfo cInfo)
 {
     if (string.IsNullOrEmpty(cInfo.ID))
     {
         throw new ArgumentNullException("参数ID不能为空。");
     }
     dal.Update(cInfo);
 }
示例#2
0
 /// <summary>
 /// 添加费用性质
 /// </summary>
 /// <param name="ID">实体主键</param>
 /// <returns></returns>
 public void Delete(string ID)
 {
     CostPropertyInfo cInfo = new CostPropertyInfo(ID);
     dal.Delete(cInfo);
 }
示例#3
0
 /// <summary>
 /// 添加费用性质
 /// </summary>
 /// <param name="cInfo">实体</param>
 /// <returns>新增实体的主键</returns>
 public string Add(CostPropertyInfo cInfo)
 {
     return dal.Add(cInfo);
 }