public override void Delete(BaseEntity entity) { var categoria = (Categoria)entity; var sqlOperation = mapper.GetDeleteStatement(categoria); dao.ExecuteProcedure(sqlOperation); }
public override bool Delete(BaseEntity entity) { var operation = _mapper.GetDeleteStatement(entity); var instance = SqlDao.GetInstance(); instance.ExecuteProcedure(operation); return(true); }
public override void Delete(Entity entity) { var categoria = (Categoria)entity; dao.ExecuteProcedure(mapper.GetDeleteStatement(categoria)); }