Exemplo n.º 1
0
 public override object ExecuteScalar()
 {
     CommandStrings.Add(CommandText);
     ExecutedParameterCollections.Add(new FakeParameterCollection(_parameters));
     ExecuteScalarInvoked = true;
     return(ExecuteScalarResult);
 }
Exemplo n.º 2
0
 public override int ExecuteNonQuery()
 {
     ExecutedParameterCollections.Add(new FakeParameterCollection(_parameters));
     CommandStrings.Add(CommandText);
     ExecuteNonQueryInvoked = true;
     return(ExecuteNonQueryResult);
 }
Exemplo n.º 3
0
 public new IDataReader ExecuteReader(CommandBehavior behavior)
 {
     CommandStrings.Add(CommandText);
     ExecutedParameterCollections.Add(new FakeParameterCollection(_parameters));
     return(ExecuteReaderResult);
 }
Exemplo n.º 4
0
 protected override DbDataReader ExecuteDbDataReader(CommandBehavior behavior)
 {
     CommandStrings.Add(CommandText);
     ExecutedParameterCollections.Add(new FakeParameterCollection(_parameters));
     return(new FakeDataReader(NextResult.Clone()));
 }