internal MockDbCommand(string command, CommandType type = CommandType.Text)
 {
     _exec       = null;
     parameters  = new MockDbParameterCollection();
     CommandText = command;
     CommandType = type;
 }
        internal MockDbCommand(IMockCommandExecution exec, DbParameterCollection collection)
            : this(exec)
        {
            if (collection is null)
            {
                throw new ArgumentNullException(nameof(collection));
            }

            if (collection is MockDbParameterCollection parameters)
            {
                this.parameters = parameters;
            }
        }
 internal MockDbConnection(IMockCommandExecution exec)
 {
     this.exec = exec;
 }
 internal MockDbCommand(IMockCommandExecution exec)
 {
     _exec       = exec;
     parameters  = new MockDbParameterCollection();
     CommandType = CommandType.Text;
 }
Пример #5
0
 internal MockDbCommand(IMockCommandExecution exec)
 {
     this._exec      = exec;
     this.parameters = new MockDbParameterCollection();
 }
Пример #6
0
 internal MockDbConnection(IMockCommandExecution exec)
 {
     this.exec = exec;
 }
Пример #7
0
 internal MockDbCommand(IMockCommandExecution exec)
 {
     this._exec = exec;
     this.parameters = new MockDbParameterCollection();
 }