Table of Contents

Class MySqlDataContextOptionsBuilderExtensions

Namespace
NextORM.MySql
Assembly
nextorm.mysql.dll

Extension methods that configure a DataContextBuilder to use MySQL.

public static class MySqlDataContextOptionsBuilderExtensions
Inheritance
MySqlDataContextOptionsBuilderExtensions
Inherited Members

Methods

UseMySql(DataContextBuilder, DbConnection)

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

public static DataContextBuilder UseMySql(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.

UseMySql(DataContextBuilder, string)

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

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

Parameters

builder DataContextBuilder

The builder to configure.

connectionString string

The MySQL connection string.

Returns

DataContextBuilder

The same builder, to allow chaining.