private void CriarComando(string text, CommandType command) { if (string.IsNullOrEmpty(text)) throw new Exception("Query não informada"); dbCommand.Connection = GetConnection(); dbCommand.CommandType = command; dbCommand.CommandText = text; }