Class PostgreSQLOptions
- Namespace
- LinqToDB.DataProvider.PostgreSQL
- Assembly
- linq2db.dll
public sealed record PostgreSQLOptions : DataProviderOptions<PostgreSQLOptions>, IOptionSet, IConfigurationID, IEquatable<DataProviderOptions<PostgreSQLOptions>>, IEquatable<PostgreSQLOptions>- Inheritance
- 
      
      
      PostgreSQLOptions
- Implements
- Inherited Members
- Extension Methods
Constructors
PostgreSQLOptions()
public PostgreSQLOptions()PostgreSQLOptions(BulkCopyType, bool, PostgreSQLIdentifierQuoteMode)
public PostgreSQLOptions(BulkCopyType BulkCopyType = BulkCopyType.MultipleRows, bool NormalizeTimestampData = true, PostgreSQLIdentifierQuoteMode IdentifierQuoteMode = PostgreSQLIdentifierQuoteMode.Auto)Parameters
- BulkCopyTypeBulkCopyType
- Default bulk copy mode, used for PostgreSQL by BulkCopy<T>(DataConnection, IEnumerable<T>) methods, if mode is not specified explicitly. Default value: MultipleRows. 
- NormalizeTimestampDatabool
- Enables normalization of DateTime and DateTimeOffset data, passed to query as parameter or passed to BulkCopy<T>(ITable<T>, IEnumerable<T>) APIs, to comform with Npgsql 6 requerements: - convert DateTimeOffset value to UTC value with zero Offset
- Use Utc for DateTime timestamptz values
- Use Unspecified for DateTime timestamp values with Utc kind
 - true.
- IdentifierQuoteModePostgreSQLIdentifierQuoteMode
- Specify identifiers quotation logic for SQL generation. Default value: Auto. 
Properties
IdentifierQuoteMode
Specify identifiers quotation logic for SQL generation. Default value: Auto.
public PostgreSQLIdentifierQuoteMode IdentifierQuoteMode { get; init; }Property Value
NormalizeTimestampData
Enables normalization of DateTime and DateTimeOffset data, passed to query as parameter or passed to BulkCopy<T>(ITable<T>, IEnumerable<T>) APIs, to comform with Npgsql 6 requerements:
- convert DateTimeOffset value to UTC value with zero Offset
- Use Utc for DateTime timestamptz values
- Use Unspecified for DateTime timestamp values with Utc kind
true.
public bool NormalizeTimestampData { get; init; }Property Value
Methods
CreateID(IdentifierBuilder)
protected override IdentifierBuilder CreateID(IdentifierBuilder builder)Parameters
- builderIdentifierBuilder
Returns
Equals(PostgreSQLOptions?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(PostgreSQLOptions? other)Parameters
- otherPostgreSQLOptions
- An object to compare with this object. 
Returns
- bool
- true if the current object is equal to the - otherparameter; otherwise, false.
GetHashCode()
Serves as a hash function for a particular type.
public override int GetHashCode()