FakeCommand - класс

Definition

Пространство имён: Tessa.Platform.Data.Fake
Сборка: Tessa (в Tessa.dll) Версия: 4.0.4
C#
public sealed class FakeCommand : DbCommand
Inheritance
Object    MarshalByRefObject    Component    DbCommand    FakeCommand

Конструкторы

FakeCommandИнициализирует новый экземпляр класса FakeCommand
FakeCommand(FakeConnection)Инициализирует новый экземпляр класса FakeCommand
FakeCommand(FakeConnection, FakeTransaction)Инициализирует новый экземпляр класса FakeCommand

Свойства

CanRaiseEventsGets a value indicating whether the component can raise an event.
(Унаследован от Component)
CommandText
(Переопределяет DbCommandCommandText)
CommandTimeout
(Переопределяет DbCommandCommandTimeout)
CommandType
(Переопределяет DbCommandCommandType)
ConnectionGets or sets the DbConnection used by this DbCommand.
(Унаследован от DbCommand)
ContainerGets the IContainer that contains the Component.
(Унаследован от Component)
DbConnection
(Переопределяет DbCommandDbConnection)
DbParameterCollection
(Переопределяет DbCommandDbParameterCollection)
DbTransaction
(Переопределяет DbCommandDbTransaction)
DesignModeGets a value that indicates whether the Component is currently in design mode.
(Унаследован от Component)
DesignTimeVisible
(Переопределяет DbCommand.DesignTimeVisible)
EventsGets the list of event handlers that are attached to this Component.
(Унаследован от Component)
FakeConnection 
FakeParameters 
FakeTransaction 
ParametersGets the collection of DbParameter objects. For more information on parameters, see Configuring Parameters and Parameter Data Types.
(Унаследован от DbCommand)
RemovedFromOutput 
SiteGets or sets the ISite of the Component.
(Унаследован от Component)
TransactionGets or sets the DbTransaction within which this DbCommand object executes.
(Унаследован от DbCommand)
UpdatedRowSource
(Переопределяет DbCommandUpdatedRowSource)

Методы

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)

События

DisposedOccurs when the component is disposed by a call to the Dispose method.
(Унаследован от Component)

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

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

См. также