Esempio n. 1
0
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="oid">主键</param>
        /// <returns></returns>
        public int Delete(Guid oid)
        {
            KeyValueP entity = new KeyValueP();

            entity.ID = oid;
            return(entity.Delete());
        }
Esempio n. 2
0
 public AjaxResult Delete(KeyValueP entity)
 {
     entity.Delete();
     return(new AjaxResult(ResultStatus.OK)
     {
         Status = ResultStatus.OK
     });
 }