示例#1
0
 /// <summary>
 /// 更新用户
 /// </summary>
 /// <param name="cInfo">实体</param>
 public void Update(UserInfo 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)
        {
            UserInfo cInfo = new UserInfo();
            cInfo.ID = ID;

            dal.Delete(cInfo);
        }
示例#3
0
 /// <summary>
 /// 添加用户
 /// </summary>
 /// <param name="cInfo">实体</param>
 /// <returns>新增实体的主键</returns>
 public string Add(UserInfo cInfo)
 {
     return dal.Add(cInfo);
 }