FakeCommand - методы

Методы

Cancel
(Переопределяет DbCommandCancel)
CreateDbParameter
(Переопределяет DbCommandCreateDbParameter)
CreateFakeParameter 
CreateParameterCreates a new instance of a DbParameter object.
(Унаследован от DbCommand)
DisposeReleases all resources used by the Component.
(Унаследован от Component)
Dispose(Boolean)Releases the unmanaged resources used by the Component and optionally releases the managed resources.
(Унаследован от Component)
DisposeAsyncAsynchronously diposes the command object.
(Унаследован от DbCommand)
EqualsDetermines whether the specified object is equal to the current object.
(Унаследован от Object)
ExecuteDbDataReader
(Переопределяет DbCommandExecuteDbDataReader(CommandBehavior))
ExecuteDbDataReaderAsyncProviders should implement this method to provide a non-default implementation for {0} - перегрузка overloads. The default implementation invokes the synchronous ExecuteReader method and returns a completed task, blocking the calling thread. The default implementation will return a cancelled task if passed an already cancelled cancellation token. Exceptions thrown by ExecuteReader will be communicated via the returned Task Exception property. This method accepts a cancellation token that can be used to request the operation to be cancelled early. Implementations may ignore this request.
(Унаследован от DbCommand)
ExecuteFakeReader 
ExecuteNonQuery
(Переопределяет DbCommandExecuteNonQuery)
ExecuteNonQueryAsyncAn asynchronous version of ExecuteNonQuery, which executes a SQL statement against a connection object. Invokes ExecuteNonQueryAsync(CancellationToken) with CancellationToken.None.
(Унаследован от DbCommand)
ExecuteNonQueryAsync(CancellationToken)This is the asynchronous version of ExecuteNonQuery. Providers should override with an appropriate implementation. The cancellation token may optionally be ignored. The default implementation invokes the synchronous ExecuteNonQuery method and returns a completed task, blocking the calling thread. The default implementation will return a cancelled task if passed an already cancelled cancellation token. Exceptions thrown by ExecuteNonQuery will be communicated via the returned Task Exception property. Do not invoke other methods and properties of the DbCommand object until the returned Task is complete.
(Унаследован от DbCommand)
ExecuteReaderExecutes the CommandText against the Connection, and returns an DbDataReader.
(Унаследован от DbCommand)
ExecuteReader(CommandBehavior)Executes the CommandText against the Connection, and returns an DbDataReader using one of the CommandBehavior values.
(Унаследован от DbCommand)
ExecuteReaderAsyncAn asynchronous version of {0} - перегрузка, which executes the CommandText against the Connection and returns a DbDataReader. Invokes ExecuteDbDataReaderAsync(CommandBehavior, CancellationToken) with CancellationToken.None.
(Унаследован от DbCommand)
ExecuteReaderAsync(CancellationToken)An asynchronous version of {0} - перегрузка, which executes the CommandText against the Connection and returns a DbDataReader. This method propagates a notification that operations should be canceled. Invokes ExecuteDbDataReaderAsync(CommandBehavior, CancellationToken).
(Унаследован от DbCommand)
ExecuteReaderAsync(CommandBehavior)An asynchronous version of {0} - перегрузка, which executes the CommandText against the Connection and returns a DbDataReader. Invokes ExecuteDbDataReaderAsync(CommandBehavior, CancellationToken).
(Унаследован от DbCommand)
ExecuteReaderAsync(CommandBehavior, CancellationToken)Invokes ExecuteDbDataReaderAsync(CommandBehavior, CancellationToken).
(Унаследован от DbCommand)
ExecuteScalar
(Переопределяет DbCommandExecuteScalar)
ExecuteScalarAsyncAn asynchronous version of ExecuteScalar, which executes the query and returns the first column of the first row in the result set returned by the query. All other columns and rows are ignored. Invokes ExecuteScalarAsync(CancellationToken) with CancellationToken.None.
(Унаследован от DbCommand)
ExecuteScalarAsync(CancellationToken)This is the asynchronous version of ExecuteScalar. Providers should override with an appropriate implementation. The cancellation token may optionally be ignored. The default implementation invokes the synchronous ExecuteScalar method and returns a completed task, blocking the calling thread. The default implementation will return a cancelled task if passed an already cancelled cancellation token. Exceptions thrown by ExecuteScalar will be communicated via the returned Task Exception property. Do not invoke other methods and properties of the DbCommand object until the returned Task is complete.
(Унаследован от DbCommand)
FinalizeReleases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection.
(Унаследован от Component)
GetHashCodeServes as the default hash function.
(Унаследован от Object)
GetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance.
(Унаследован от MarshalByRefObject)
GetServiceReturns an object that represents a service provided by the Component or by its Container.
(Унаследован от Component)
GetTypeGets the Type of the current instance.
(Унаследован от Object)
InitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance.
(Унаследован от MarshalByRefObject)
MemberwiseCloneCreates a shallow copy of the current Object.
(Унаследован от Object)
MemberwiseClone(Boolean)Creates a shallow copy of the current MarshalByRefObject object.
(Унаследован от MarshalByRefObject)
Prepare
(Переопределяет DbCommandPrepare)
PrepareAsyncAsynchronously creates a prepared (or compiled) version of the command on the data source.
(Унаследован от DbCommand)
RemoveFromOutput 
ToStringReturns a String containing the name of the Component, if any. This method should not be overridden.
(Унаследован от Component)

Методы расширения

ExecuteScalarAsyncT
(Определяется DataExtensions)
ExecuteSelectAsyncT
(Определяется DataExtensions)
ExecuteSelectFirstAsyncT
(Определяется DataExtensions)
ExecuteSelectFirstOrDefaultAsyncT
(Определяется DataExtensions)
ExecuteSelectFirstOrDefaultAsyncT
(Определяется DataExtensions)

См. также