Table of Contents

Interface IDynamicProviderAdapter

Namespace
LinqToDB.Internal.DataProvider
Assembly
linq2db.dll

Contains base information about ADO.NET provider. Could be extended by specific implementation to expose additional provider-specific services.

public interface IDynamicProviderAdapter
Extension Methods

Properties

CommandType

Gets type, that implements DbCommand for current ADO.NET provider.

Type CommandType { get; }

Property Value

Type

ConnectionType

Gets type, that implements DbConnection for current ADO.NET provider.

Type ConnectionType { get; }

Property Value

Type

DataReaderType

Gets type, that implements DbDataReader for current ADO.NET provider.

Type DataReaderType { get; }

Property Value

Type

ParameterType

Gets type, that implements DbParameter for current ADO.NET provider.

Type ParameterType { get; }

Property Value

Type

TransactionType

Gets type, that implements DbTransaction for current ADO.NET provider. For providers/databases without transaction support contains null.

Type? TransactionType { get; }

Property Value

Type

Methods

CreateConnection(string)

Creates instance of database provider connection class using provided connection string.

DbConnection CreateConnection(string connectionString)

Parameters

connectionString string

Connection string to use with created connection.

Returns

DbConnection

Connection instance.