Ejemplo n.º 1
0
 /// <summary>
 /// Constroi um novo command
 /// </summary>
 /// <param name="commandText">SQL que será utilizado no comando</param>
 /// <param name="connection">Conexão associada ao comando</param>
 /// <param name="transaction">Transação associada ao comando</param>
 public Command(string commandText, Unimake.Data.Generic.Connection connection, Unimake.Data.Generic.Transaction transaction)
     : this(connection.CreateCommand().mCommand)
 {
     CommandText = commandText;
     Connection  = connection;
     Transaction = transaction;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Constroi um novo command
 /// </summary>
 /// <param name="connection">Conexão associada ao comando</param>
 public Command(Unimake.Data.Generic.Connection connection)
     : this(connection.CreateCommand().mCommand)
 {
     Connection = connection;
 }