Exemplo n.º 1
0
        public IDbCommand CreateCommand()
        {
            IDbCommand cmd = new NativeCommand();

            cmd.Connection = this;
            return(cmd);
        }
Exemplo n.º 2
0
        public override IDbCommand CreateCommand(string query)
        {
            IDbCommand cmd = new NativeCommand();

            cmd.CommandText = query;
            cmd.Connection  = connection;
            cmd.Transaction = transaction;
            cmd.Prepare();
            return(cmd);
        }