AcessoDados.Engine.CriarComando C# (CSharp) Méthode

CriarComando() private méthode

private CriarComando ( string text, CommandType command ) : void
text string
command CommandType
Résultat void
        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;
        }