예제 #1
0
        public object Clone()
        {
            var clone = new MockDbCommand(_connection)
            {
                CommandText = CommandText, _parameters = _parameters
            };

            return(clone);
        }
예제 #2
0
 public object Clone()
 {
     var clone = new MockDbCommand(_connection) {CommandText = CommandText};
     foreach (var p in Parameters.Cast<IDbDataParameter>())
     {
         clone.Parameters.Add(new MockDataParameter {DbType = p.DbType, ParameterName = p.ParameterName});
     }
     return clone;
 }
예제 #3
0
 public object Clone()
 {
     var clone = new MockDbCommand(_connection) {CommandText = CommandText, _parameters = _parameters};
     return clone;
 }