Skip to main content
A newer version of this page is available. .

PostgreSqlConnectionProvider Members

Implements data-aware operations for working with a PostgreSQL database.

Constructors

Name Description
PostgreSqlConnectionProvider(IDbConnection, AutoCreateOption) Initializes a new instance of the PostgreSqlConnectionProvider class with the specified settings.

Fields

Name Description
DefaultCommandTimeout Specifies the timeout value passed to the IDbCommand.CommandTimeout property of each created command, in seconds. Inherited from ConnectionProviderSql.
EnableConnectionStringArgumentEscaping static Inherited from ConnectionProviderSql.
GlobalDefaultCommandTimeout static Specifies the timeout value passed to the IDbCommand.CommandTimeout property, in seconds. Can be overridden by the ConnectionProviderSql.DefaultCommandTimeout field. The default is 300. Inherited from ConnectionProviderSql.
GlobalUseLegacyGuidSupport static Specifies the default GUID mapping mode for all PostgreSqlConnectionProvider instances. Set this field to true to map GUIDs to CHAR(36) columns or set it to false to map to the UUID columns (requires Npgsql v3.1.0). To specify the character set for a specific PostgreSqlConnectionProvider instance, use the UseLegacyGuidSupport field instead.
IdentityColumnMagicName static Inherited from ConnectionProviderSql.
MaxDeadLockRetryDelayMilliseconds static Inherited from ConnectionProviderSql.
MaxDeadLockTryCount static Inherited from ConnectionProviderSql.
MaximumStringSize This member supports the internal infrastructure and is not intended to be used directly from your code.
ObjectsOwner This member supports the internal infrastructure and is not intended to be used directly from your code.
UseLegacyGuidSupport Specifies the default GUID mapping mode for the current PostgreSqlConnectionProvider instance. Set this field to true to map GUIDs to CHAR(36) columns or set it to false to map to the UUID columns (requires Npgsql v3.1.0). When this field is set to null), the GlobalUseLegacyGuidSupport value is used. When both values are null, the UUID columns are used.
UseLegacyTimeSpanSupport static Inherited from ConnectionProviderSql.
XpoProviderTypeParameterName static Returns a parameter name used to denote a provider type in a connection string. The default value is “XpoProvider”. Inherited from DataStoreBase.
XpoProviderTypeString Gets the name of the current connection provider. This name is used internally when generating a connection string via the PostgreSqlConnectionProvider.GetConnectionString metho

Properties

Name Description
AutoCreateOption Returns which operations are performed when a data store is accessed for the first time. Inherited from DataStoreBase.
BraceJoin Inherited from ConnectionProviderSql.
CanCreateDatabase Inherited from ConnectionProviderSql.
CanCreateSchema Inherited from ConnectionProviderSql.
Connection Inherited from ConnectionProviderSql.
ConnectionString Inherited from ConnectionProviderSql.
CustomFunctionOperators Inherited from ConnectionProviderSql.
Factories static Returns registered provider factories. Inherited from DataStoreBase.
NativeOuterApplySupported Inherited from ConnectionProviderSql.
NativeSkipTakeSupported This member supports the internal infrastructure and is not intended to be used directly from your code.
SupportNamedParameters Inherited from ConnectionProviderSql.
SyncRoot Inherited from ConnectionProviderSql.
Transaction Inherited from ConnectionProviderSql.

Methods

Name Description
ClearDatabase(IDbCommand) This method supports the internal infrastructure and is not intended to be called directly from your code.
CollectTablesToCreate(ICollection) This method supports the internal infrastructure and is not intended to be called directly from your code.
ComposeSafeColumnName(String) Inherited from ConnectionProviderSql.
ComposeSafeConstraintName(String) Inherited from ConnectionProviderSql.
ComposeSafeSchemaName(String) Inherited from ConnectionProviderSql.
ComposeSafeTableName(String) Inherited from ConnectionProviderSql.
CreateColumn(DBTable, DBColumn) Inherited from ConnectionProviderSql.
CreateCommand() Inherited from ConnectionProviderSql.
CreateConnection(String) static This method supports the internal infrastructure and is not intended to be called directly from your code.
CreateForeignKey(DBTable, DBForeignKey) Inherited from ConnectionProviderSql.
CreateIndex(DBTable, DBIndex) Inherited from ConnectionProviderSql.
CreateObjRef(Type) Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. Inherited from MarshalByRefObject.
CreatePrimaryKey(DBTable) Inherited from ConnectionProviderSql.
CreateProviderFromConnection(IDbConnection, AutoCreateOption) static This member supports the internal infrastructure and is not intended to be used directly from your code.
CreateProviderFromString(String, AutoCreateOption, out IDisposable[]) static This member supports the internal infrastructure and is not intended to be used directly from your code.
CreateTable(DBTable) This member supports the internal infrastructure and is not intended to be used directly from your code.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
EscapeConnectionStringArgument(String) static Inherited from ConnectionProviderSql.
ExecSql(Query) Inherited from ConnectionProviderSql.
ExplicitBeginTransaction() Inherited from ConnectionProviderSql.
ExplicitBeginTransaction(IsolationLevel) Inherited from ConnectionProviderSql.
ExplicitCommitTransaction() Inherited from ConnectionProviderSql.
ExplicitRollbackTransaction() Inherited from ConnectionProviderSql.
FormatBinary(BinaryOperatorType, String, String) This member supports the internal infrastructure and is not intended to be used directly from your code.
FormatColumn(String, String) This member supports the internal infrastructure and is not intended to be used directly from your code.
FormatColumn(String) This member supports the internal infrastructure and is not intended to be used directly from your code.
FormatColumnSafe(String) Inherited from ConnectionProviderSql.
FormatConstraint(String) This member supports the internal infrastructure and is not intended to be used directly from your code.
FormatConstraintSafe(String) Inherited from ConnectionProviderSql.
FormatDelete(String, String) This member supports the internal infrastructure and is not intended to be used directly from your code.
FormatFunction(FunctionOperatorType, String[]) This member supports the internal infrastructure and is not intended to be used directly from your code.
FormatFunction(ProcessParameter, FunctionOperatorType, Object[]) This member supports the internal infrastructure and is not intended to be used directly from your code.
FormatInsert(String, String, String) This member supports the internal infrastructure and is not intended to be used directly from your code.
FormatInsertDefaultValues(String) This member supports the internal infrastructure and is not intended to be used directly from your code.
FormatOrder(String, SortingDirection) This member supports the internal infrastructure and is not intended to be used directly from your code.
FormatOuterApply(String, String) Inherited from ConnectionProviderSql.
FormatSelect(String, String, String, String, String, String, Int32, Int32) This member supports the internal infrastructure and is not intended to be used directly from your code.
FormatSelect(String, String, String, String, String, String, Int32) Inherited from ConnectionProviderSql.
FormatTable(String, String, String) This member supports the internal infrastructure and is not intended to be used directly from your code.
FormatTable(String, String) This member supports the internal infrastructure and is not intended to be used directly from your code.
FormatTableSafe(DBTable) Inherited from ConnectionProviderSql.
FormatUnary(UnaryOperatorType, String) Inherited from ConnectionProviderSql.
FormatUpdate(String, String, String) This member supports the internal infrastructure and is not intended to be used directly from your code.
GenerateStoredProcedures(DBTable, out String) Inherited from ConnectionProviderSql.
GenerateStoredProceduresInfoOnce() Inherited from ConnectionProviderSql.
GetColumnType(DbType, Boolean) static Inherited from ConnectionProviderSql.
GetConnectionString(String, Int32, String, String, String) static Returns a connection string used to open a specified PostgreSQL database using provided login credentials.
GetConnectionString(String, String, String, String) static Returns a connection string used to open a specified PostgreSQL database using provided login credentials.
GetCustomFunctionOperator(String) Inherited from ConnectionProviderSql.
GetDbType(DBColumnType) static Inherited from ConnectionProviderSql.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetLifetimeService() Retrieves the current lifetime service object that controls the lifetime policy for this instance. Inherited from MarshalByRefObject.
GetParameterName(OperandValue, Int32, ref Boolean) This member supports the .NET Framework infrastructure and cannot be used directly from your code.
GetSqlCreateColumnFullAttributes(DBTable, DBColumn, Boolean) This member supports the .NET Framework infrastructure and cannot be used directly from your code.
GetSqlCreateColumnFullAttributes(DBTable, DBColumn) This member supports the .NET Framework infrastructure and cannot be used directly from your code.
GetStorageTables(String[]) Inherited from ConnectionProviderSql.
GetStorageTablesList(Boolean) Returns a list of the available tables in the data store.
GetStoredProcedures() This member supports the internal infrastructure and is not intended to be used directly from your code.
GetTableSchema(DBTable, Boolean, Boolean) This member supports the internal infrastructure and is not intended to be used directly from your code.
GetType() Gets the Type of the current instance. Inherited from Object.
InitializeLifetimeService() Obtains a lifetime service object to control the lifetime policy for this instance. Inherited from MarshalByRefObject.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
MemberwiseClone(Boolean) protected Creates a shallow copy of the current MarshalByRefObject object. Inherited from MarshalByRefObject.
ModifyData(ModificationStatement[]) Inherited from ConnectionProviderSql.
QueryDataStore(IDbConnection, AutoCreateOption) static Creates a data store based on specified settings. Inherited from DataStoreBase.
QueryDataStore(String, String, AutoCreateOption, out IDisposable[]) static Creates a data store based on specified settings. Inherited from DataStoreBase.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
Register() static Registers the provider for use with XPO.
RegisterCustomFunctionOperator(ICustomFunctionOperatorFormattable) Inherited from ConnectionProviderSql.
RegisterCustomFunctionOperators(ICollection<ICustomFunctionOperatorFormattable>) Inherited from ConnectionProviderSql.
RegisterDataStoreProvider(String, DataStoreCreationFromConnectionDelegate) static Registers a data store provider using a specified connection type name and a procedure that establishes a connection for the provider. Inherited from DataStoreBase.
RegisterDataStoreProvider(String, DataStoreCreationFromStringDelegate) static Registers a data store provider using a specified name and a procedure that establishes a connection for the provider. Inherited from DataStoreBase.
RegisterFactory(ProviderFactory) static Registers a specified data store provider factory. Inherited from DataStoreBase.
SelectData(SelectStatement[]) Inherited from ConnectionProviderSql.
SetServerVersion(String) This member supports the internal infrastructure and is not intended to be used directly from your code.
ToString() Returns a string that represents the current object. Inherited from Object.
UnregisterCustomFunctionOperator(ICustomFunctionOperatorFormattable) Inherited from ConnectionProviderSql.
UnregisterCustomFunctionOperator(String) Inherited from ConnectionProviderSql.
UpdateSchema(DBTable[]) Updates a data store’s schema according to specified settings. Inherited from DataStoreBase.
UpdateSchema(Boolean, DBTable[]) Inherited from ConnectionProviderSql.

Events

Name Description
Reconnected Inherited from ConnectionProviderSql.
See Also