Table of Contents

Class NpgsqlProviderAdapter

Namespace
LinqToDB.DataProvider.PostgreSQL
Assembly
linq2db.dll
public class NpgsqlProviderAdapter : IDynamicProviderAdapter
Inheritance
NpgsqlProviderAdapter
Implements
Extension Methods

Fields

AssemblyName

public const string AssemblyName = "Npgsql"

Field Value

string

ClientNamespace

public const string ClientNamespace = "Npgsql"

Field Value

string

TypesNamespace

public const string TypesNamespace = "NpgsqlTypes"

Field Value

string

Properties

BeginBinaryImport

public Func<DbConnection, string, NpgsqlProviderAdapter.NpgsqlBinaryImporter> BeginBinaryImport { get; }

Property Value

Func<DbConnection, string, NpgsqlProviderAdapter.NpgsqlBinaryImporter>

BeginBinaryImportAsync

public Func<DbConnection, string, CancellationToken, Task<NpgsqlProviderAdapter.NpgsqlBinaryImporter>>? BeginBinaryImportAsync { get; }

Property Value

Func<DbConnection, string, CancellationToken, Task<NpgsqlProviderAdapter.NpgsqlBinaryImporter>>

CommandType

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

public Type CommandType { get; }

Property Value

Type

ConnectionType

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

public Type ConnectionType { get; }

Property Value

Type

DataReaderType

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

public Type DataReaderType { get; }

Property Value

Type

GetDateReaderMethod

public string? GetDateReaderMethod { get; }

Property Value

string

GetDbType

public Func<DbParameter, NpgsqlProviderAdapter.NpgsqlDbType> GetDbType { get; }

Property Value

Func<DbParameter, NpgsqlProviderAdapter.NpgsqlDbType>

GetIntervalReaderMethod

public string? GetIntervalReaderMethod { get; }

Property Value

string

GetTimeStampReaderMethod

public string? GetTimeStampReaderMethod { get; }

Property Value

string

MappingSchema

public MappingSchema MappingSchema { get; }

Property Value

MappingSchema

NpgsqlBoxType

public Type NpgsqlBoxType { get; }

Property Value

Type

NpgsqlCidrType

public Type? NpgsqlCidrType { get; }

Property Value

Type

NpgsqlCircleType

public Type NpgsqlCircleType { get; }

Property Value

Type

NpgsqlDateTimeType

public Type? NpgsqlDateTimeType { get; }

Property Value

Type

NpgsqlDateType

public Type? NpgsqlDateType { get; }

Property Value

Type

NpgsqlInetType

public Type NpgsqlInetType { get; }

Property Value

Type

NpgsqlIntervalReader

public Expression? NpgsqlIntervalReader { get; }

Property Value

Expression

NpgsqlIntervalType

public Type? NpgsqlIntervalType { get; }

Property Value

Type

NpgsqlLSegType

public Type NpgsqlLSegType { get; }

Property Value

Type

NpgsqlLineType

public Type NpgsqlLineType { get; }

Property Value

Type

NpgsqlPathType

public Type NpgsqlPathType { get; }

Property Value

Type

NpgsqlPointType

public Type NpgsqlPointType { get; }

Property Value

Type

NpgsqlPolygonType

public Type NpgsqlPolygonType { get; }

Property Value

Type

NpgsqlRangeTType

public Type NpgsqlRangeTType { get; }

Property Value

Type

NpgsqlTimeSpanType

public Type? NpgsqlTimeSpanType { get; }

Property Value

Type

ParameterType

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

public Type ParameterType { get; }

Property Value

Type

ProviderTypesNamespace

public string ProviderTypesNamespace { get; }

Property Value

string

SetDbType

public Action<DbParameter, NpgsqlProviderAdapter.NpgsqlDbType> SetDbType { get; }

Property Value

Action<DbParameter, NpgsqlProviderAdapter.NpgsqlDbType>

SupportsBigInteger

public bool SupportsBigInteger { get; }

Property Value

bool

TransactionType

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

public Type TransactionType { get; }

Property Value

Type

Methods

ApplyDbTypeFlags(NpgsqlDbType, bool, bool, bool, bool)

public NpgsqlProviderAdapter.NpgsqlDbType ApplyDbTypeFlags(NpgsqlProviderAdapter.NpgsqlDbType type, bool isArray, bool isRange, bool isMultiRange, bool convertAlways)

Parameters

type NpgsqlProviderAdapter.NpgsqlDbType
isArray bool
isRange bool
isMultiRange bool
convertAlways bool

Returns

NpgsqlProviderAdapter.NpgsqlDbType

CreateConnection(string)

public NpgsqlProviderAdapter.NpgsqlConnection CreateConnection(string connectionString)

Parameters

connectionString string

Returns

NpgsqlProviderAdapter.NpgsqlConnection

GetInstance()

public static NpgsqlProviderAdapter GetInstance()

Returns

NpgsqlProviderAdapter

IsDbTypeSupported(NpgsqlDbType)

public bool IsDbTypeSupported(NpgsqlProviderAdapter.NpgsqlDbType type)

Parameters

type NpgsqlProviderAdapter.NpgsqlDbType

Returns

bool