Table of Contents

Class DynamicDataProviderBase<TProviderMappings>

Namespace
LinqToDB.DataProvider
Assembly
linq2db.dll
public abstract class DynamicDataProviderBase<TProviderMappings> : DataProviderBase, IDataProvider where TProviderMappings : IDynamicProviderAdapter

Type Parameters

TProviderMappings
Inheritance
DynamicDataProviderBase<TProviderMappings>
Implements
Derived
Inherited Members
Extension Methods

Constructors

DynamicDataProviderBase(string, MappingSchema, TProviderMappings)

protected DynamicDataProviderBase(string name, MappingSchema mappingSchema, TProviderMappings providerMappings)

Parameters

name string
mappingSchema MappingSchema
providerMappings TProviderMappings

Fields

GetProviderSpecificValueReaderMethod

protected const string GetProviderSpecificValueReaderMethod = "GetProviderSpecificValue"

Field Value

string

Properties

Adapter

public TProviderMappings Adapter { get; }

Property Value

TProviderMappings

ConnectionNamespace

public override string? ConnectionNamespace { get; }

Property Value

string

DataReaderType

public override Type DataReaderType { get; }

Property Value

Type

TransactionsSupported

public override bool TransactionsSupported { get; }

Property Value

bool

Methods

CreateConnectionInternal(string)

protected override DbConnection CreateConnectionInternal(string connectionString)

Parameters

connectionString string

Returns

DbConnection

SetField(Type, string, string, bool, Type?)

protected bool SetField(Type fieldType, string dataTypeName, string methodName, bool throwException = true, Type? dataReaderType = null)

Parameters

fieldType Type
dataTypeName string
methodName string
throwException bool
dataReaderType Type

Returns

bool

SetProviderField(Type, string, Type?)

protected void SetProviderField(Type fieldType, string methodName, Type? dataReaderType = null)

Parameters

fieldType Type
methodName string
dataReaderType Type

SetProviderField(Type, Type, string, bool, Type?, string?)

protected bool SetProviderField(Type toType, Type fieldType, string methodName, bool throwException = true, Type? dataReaderType = null, string? typeName = null)

Parameters

toType Type
fieldType Type
methodName string
throwException bool
dataReaderType Type
typeName string

Returns

bool

SetProviderField<TField>(string, Type?)

protected void SetProviderField<TField>(string methodName, Type? dataReaderType = null)

Parameters

methodName string
dataReaderType Type

Type Parameters

TField

SetProviderField<TTo, TField>(string, bool, Type?)

protected bool SetProviderField<TTo, TField>(string methodName, bool throwException = true, Type? dataReaderType = null)

Parameters

methodName string
throwException bool
dataReaderType Type

Returns

bool

Type Parameters

TTo
TField

SetToTypeField(Type, string, Type?)

protected void SetToTypeField(Type toType, string methodName, Type? dataReaderType = null)

Parameters

toType Type
methodName string
dataReaderType Type

TryGetProviderCommand(IDataContext, DbCommand)

public virtual DbCommand? TryGetProviderCommand(IDataContext dataContext, DbCommand command)

Parameters

dataContext IDataContext
command DbCommand

Returns

DbCommand

TryGetProviderConnection(IDataContext, DbConnection)

public virtual DbConnection? TryGetProviderConnection(IDataContext dataContext, DbConnection connection)

Parameters

dataContext IDataContext
connection DbConnection

Returns

DbConnection

TryGetProviderParameter(IDataContext, DbParameter)

public virtual DbParameter? TryGetProviderParameter(IDataContext dataContext, DbParameter parameter)

Parameters

dataContext IDataContext
parameter DbParameter

Returns

DbParameter

TryGetProviderTransaction(IDataContext, DbTransaction)

public virtual DbTransaction? TryGetProviderTransaction(IDataContext dataContext, DbTransaction transaction)

Parameters

dataContext IDataContext
transaction DbTransaction

Returns

DbTransaction