Table of Contents

Class PostgresDataContextOptionsBuilderExtensions

Namespace
NextORM.Postgres
Assembly
nextorm.postgres.dll

Extension methods that configure a DataContextBuilder to use PostgreSQL.

public static class PostgresDataContextOptionsBuilderExtensions
Inheritance
PostgresDataContextOptionsBuilderExtensions
Inherited Members

Methods

UsePostgres(DataContextBuilder, DbConnection)

Configures the builder to create PostgreSQL contexts over the caller-supplied connection.

public static DataContextBuilder UsePostgres(this DataContextBuilder builder, DbConnection connection)

Parameters

builder DataContextBuilder

The builder to configure.

connection DbConnection

An already-created connection owned by the caller.

Returns

DataContextBuilder

The same builder, to allow chaining.

UsePostgres(DataContextBuilder, string)

Configures the builder to create PostgreSQL contexts that own a connection built from connectionString.

public static DataContextBuilder UsePostgres(this DataContextBuilder builder, string connectionString)

Parameters

builder DataContextBuilder

The builder to configure.

connectionString string

The PostgreSQL connection string.

Returns

DataContextBuilder

The same builder, to allow chaining.