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
ClientNamespace
public const string ClientNamespace = "Npgsql"
Field Value
TypesNamespace
public const string TypesNamespace = "NpgsqlTypes"
Field Value
Properties
BeginBinaryImport
public Func<DbConnection, string, NpgsqlProviderAdapter.NpgsqlBinaryImporter> BeginBinaryImport { get; }
Property Value
BeginBinaryImportAsync
public Func<DbConnection, string, CancellationToken, Task<NpgsqlProviderAdapter.NpgsqlBinaryImporter>>? BeginBinaryImportAsync { get; }
Property Value
CommandType
Gets type, that implements DbCommand for current ADO.NET provider.
public Type CommandType { get; }
Property Value
ConnectionType
Gets type, that implements DbConnection for current ADO.NET provider.
public Type ConnectionType { get; }
Property Value
DataReaderType
Gets type, that implements DbDataReader for current ADO.NET provider.
public Type DataReaderType { get; }
Property Value
GetDateReaderMethod
public string? GetDateReaderMethod { get; }
Property Value
GetDbType
public Func<DbParameter, NpgsqlProviderAdapter.NpgsqlDbType> GetDbType { get; }
Property Value
GetIntervalReaderMethod
public string? GetIntervalReaderMethod { get; }
Property Value
GetTimeStampReaderMethod
public string? GetTimeStampReaderMethod { get; }
Property Value
MappingSchema
public MappingSchema MappingSchema { get; }
Property Value
NpgsqlBoxType
public Type NpgsqlBoxType { get; }
Property Value
NpgsqlCidrType
public Type? NpgsqlCidrType { get; }
Property Value
NpgsqlCircleType
public Type NpgsqlCircleType { get; }
Property Value
NpgsqlDateTimeType
public Type? NpgsqlDateTimeType { get; }
Property Value
NpgsqlDateType
public Type? NpgsqlDateType { get; }
Property Value
NpgsqlInetType
public Type NpgsqlInetType { get; }
Property Value
NpgsqlIntervalReader
public Expression? NpgsqlIntervalReader { get; }
Property Value
NpgsqlIntervalType
public Type? NpgsqlIntervalType { get; }
Property Value
NpgsqlLSegType
public Type NpgsqlLSegType { get; }
Property Value
NpgsqlLineType
public Type NpgsqlLineType { get; }
Property Value
NpgsqlPathType
public Type NpgsqlPathType { get; }
Property Value
NpgsqlPointType
public Type NpgsqlPointType { get; }
Property Value
NpgsqlPolygonType
public Type NpgsqlPolygonType { get; }
Property Value
NpgsqlRangeTType
public Type NpgsqlRangeTType { get; }
Property Value
NpgsqlTimeSpanType
public Type? NpgsqlTimeSpanType { get; }
Property Value
ParameterType
Gets type, that implements DbParameter for current ADO.NET provider.
public Type ParameterType { get; }
Property Value
ProviderTypesNamespace
public string ProviderTypesNamespace { get; }
Property Value
SetDbType
public Action<DbParameter, NpgsqlProviderAdapter.NpgsqlDbType> SetDbType { get; }
Property Value
SupportsBigInteger
public bool SupportsBigInteger { get; }
Property Value
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
Methods
ApplyDbTypeFlags(NpgsqlDbType, bool, bool, bool, bool)
public NpgsqlProviderAdapter.NpgsqlDbType ApplyDbTypeFlags(NpgsqlProviderAdapter.NpgsqlDbType type, bool isArray, bool isRange, bool isMultiRange, bool convertAlways)
Parameters
typeNpgsqlProviderAdapter.NpgsqlDbTypeisArrayboolisRangeboolisMultiRangeboolconvertAlwaysbool
Returns
CreateConnection(string)
public NpgsqlProviderAdapter.NpgsqlConnection CreateConnection(string connectionString)
Parameters
connectionStringstring
Returns
GetInstance()
public static NpgsqlProviderAdapter GetInstance()
Returns
IsDbTypeSupported(NpgsqlDbType)
public bool IsDbTypeSupported(NpgsqlProviderAdapter.NpgsqlDbType type)