FakeNpgsqlConnection - класс

Definition

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

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

FakeNpgsqlConnectionИнициализирует новый экземпляр класса FakeNpgsqlConnection

Свойства

CanCreateBatchGets a value that indicates whether this DbConnection instance supports the DbBatch class.
(Унаследован от DbConnection)
CanRaiseEventsGets a value indicating whether the component can raise an event.
(Унаследован от Component)
ConnectionString
(Унаследован от FakeConnection)
ConnectionTimeout
(Унаследован от FakeConnection)
ContainerGets the IContainer that contains the Component.
(Унаследован от Component)
Database
(Унаследован от FakeConnection)
DataSource
(Унаследован от FakeConnection)
DbProviderFactoryGets the DbProviderFactory for this DbConnection.
(Унаследован от DbConnection)
DesignModeGets a value that indicates whether the Component is currently in design mode.
(Унаследован от Component)
EventsGets the list of event handlers that are attached to this Component.
(Унаследован от Component)
IgnoreExecuteReader
(Унаследован от FakeConnection)
Output
(Унаследован от FakeConnection)
OutputTransactions
(Унаследован от FakeConnection)
ServerVersion
(Унаследован от FakeConnection)
SiteGets or sets the ISite of the Component.
(Унаследован от Component)
State
(Унаследован от FakeConnection)
Transaction
(Унаследован от FakeConnection)

Методы

AsDbManager
(Переопределяет FakeConnectionAsDbManager)
BeginDbTransaction
(Унаследован от FakeConnection)
BeginDbTransactionAsyncAsynchronously starts a database transaction.
(Унаследован от DbConnection)
BeginFakeTransaction
(Унаследован от FakeConnection)
BeginTransactionStarts a database transaction.
(Унаследован от DbConnection)
BeginTransaction(FakeTransaction)
(Переопределяет FakeConnectionBeginTransaction(FakeTransaction))
BeginTransaction(IsolationLevel)Starts a database transaction with the specified isolation level.
(Унаследован от DbConnection)
BeginTransactionAsync(CancellationToken)Asynchronously begins a database transaction.
(Унаследован от DbConnection)
BeginTransactionAsync(IsolationLevel, CancellationToken)Asynchronously begins a database transaction.
(Унаследован от DbConnection)
ChangeDatabase
(Унаследован от FakeConnection)
ChangeDatabaseAsyncAsynchronously changes the current database for an open connection.
(Унаследован от DbConnection)
Close
(Унаследован от FakeConnection)
CloseAsyncAsynchronously closes the connection to the database.
(Унаследован от DbConnection)
CommitTransaction
(Переопределяет FakeConnectionCommitTransaction(FakeTransaction))
CreateBatchReturns a new instance of the provider's class that implements the DbBatch class.
(Унаследован от DbConnection)
CreateCommandCreates and returns a DbCommand object associated with the current connection.
(Унаследован от DbConnection)
CreateDbBatchWhen overridden in a derived class, returns a new instance of the provider's class that implements the DbBatch class.
(Унаследован от DbConnection)
CreateDbCommand
(Унаследован от FakeConnection)
CreateFakeCommand
(Унаследован от FakeConnection)
DisposeReleases all resources used by the Component.
(Унаследован от Component)
Dispose(Boolean)
(Унаследован от FakeConnection)
DisposeAsyncAsynchronously diposes the connection object.
(Унаследован от DbConnection)
EnlistTransactionEnlists in the specified transaction.
(Унаследован от DbConnection)
EqualsDetermines whether the specified object is equal to the current object.
(Унаследован от Object)
ExecuteNonQuery
(Переопределяет FakeConnectionExecuteNonQuery(FakeCommand))
ExecuteReader
(Переопределяет FakeConnectionExecuteReader(FakeCommand))
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)
Устарело.
GetSchemaReturns schema information for the data source of this DbConnection.
(Унаследован от DbConnection)
GetSchema(String)Returns schema information for the data source of this DbConnection using the specified string for the schema name.
(Унаследован от DbConnection)
GetSchema(String, String)Returns schema information for the data source of this DbConnection using the specified string for the schema name and the specified string array for the restriction values.
(Унаследован от DbConnection)
GetSchemaAsync(CancellationToken)This is an asynchronous version of GetSchema. Providers should override with an appropriate implementation. The cancellationToken can optionally be honored. The default implementation invokes the synchronous GetSchema call and returns a completed task. The default implementation will return a cancelled task if passed an already cancelled cancellationToken. Exceptions thrown by GetSchema will be communicated via the returned Task Exception property.
(Унаследован от DbConnection)
GetSchemaAsync(String, CancellationToken)This is the asynchronous version of GetSchema(String). Providers should override with an appropriate implementation. The cancellationToken can optionally be honored. The default implementation invokes the synchronous GetSchema(String) call and returns a completed task. The default implementation will return a cancelled task if passed an already cancelled cancellationToken. Exceptions thrown by GetSchema(String) will be communicated via the returned Task Exception property.
(Унаследован от DbConnection)
GetSchemaAsync(String, String, CancellationToken)This is the asynchronous version of GetSchema(String, String). Providers should override with an appropriate implementation. The cancellationToken can optionally be honored. The default implementation invokes the synchronous GetSchema(String, String) call and returns a completed task. The default implementation will return a cancelled task if passed an already cancelled cancellationToken. Exceptions thrown by GetSchema(String, String) will be communicated via the returned Task Exception property.
(Унаследован от DbConnection)
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)
OnStateChangeRaises the StateChange event.
(Унаследован от DbConnection)
Open
(Унаследован от FakeConnection)
OpenAsyncAn asynchronous version of Open, which opens a database connection with the settings specified by the ConnectionString. This method invokes the virtual method OpenAsync(CancellationToken) with CancellationToken.None.
(Унаследован от DbConnection)
OpenAsync(CancellationToken)This is the asynchronous version of Open. Providers should override with an appropriate implementation. The cancellation token can optionally be honored. The default implementation invokes the synchronous Open call and returns a completed task. The default implementation will return a cancelled task if passed an already cancelled cancellationToken. Exceptions thrown by Open will be communicated via the returned Task Exception property. Do not invoke other methods and properties of the DbConnection object until the returned Task is complete.
(Унаследован от DbConnection)
OpenAsync(CancellationToken)
(Унаследован от FakeConnection)
RollbackTransaction
(Переопределяет FakeConnectionRollbackTransaction(FakeTransaction))
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)
StateChangeOccurs when the state of the event changes.
(Унаследован от DbConnection)

См. также