/// <summary> /// 按条件删除指定记录 /// </summary> /// <param name="creator"></param> /// <returns></returns> public int Excute(DeleteCreator creator) { if (creator.Table == null) { throw new MySoftException("用创建器操作时,表不能为null!"); } if (DataUtils.IsNullOrEmpty(creator.Where)) { throw new MySoftException("用删除创建器操作时,条件不能为空!"); } return(Delete <TempTable>(creator.Table, creator.Where)); }
/// <summary> /// 按条件删除指定记录 /// </summary> /// <param name="creator"></param> /// <returns></returns> public int Execute(DeleteCreator creator) { if (creator.Table == null) { throw new DataException("用创建器操作时,表不能为null!"); } if (DataHelper.IsNullOrEmpty(creator.Where)) { throw new DataException("用删除创建器操作时,条件不能为空!"); } return(Delete <ViewEntity>(creator.Table, creator.Where)); }
/// <summary> /// 按条件删除指定记录 /// </summary> /// <typeparam name="T"></typeparam> /// <param name="creator"></param> /// <returns></returns> public int Execute(DeleteCreator creator) { return(dbTrans.Execute(creator)); }