Table of Contents

Class MariaDbDataContext

Namespace
NextORM.MariaDb
Assembly
nextorm.mariadb.dll

Data context for MariaDB. Reuses the MySqlConnector connection and parameter behaviour of MySqlDataContext but renders SQL through MariaDbDialect.

public class MariaDbDataContext : MySqlDataContext, IDataContext, IQueryExecutor, IQueryMaterializer, IQueryPlanner, IRowReaderFactory, IQueryCache, IContextEnvironment, IRawCommandExecutor, IAsyncDisposable, IDisposable, IConnectionManager, ITransactionManager
Inheritance
MariaDbDataContext
Implements
Inherited Members
Extension Methods

Constructors

MariaDbDataContext(DbConnection, DataContextBuilder)

Creates a MariaDB context over a caller-supplied connection, which the context does not dispose. The context is unversioned: no version-gated form is emitted.

public MariaDbDataContext(DbConnection connection, DataContextBuilder optionsBuilder)

Parameters

connection DbConnection

An already-created DbConnection owned by the caller.

optionsBuilder DataContextBuilder

The options collected from DataContextBuilder.

MariaDbDataContext(DbConnection, DataContextBuilder, Version?)

Creates a version-aware MariaDB context over a caller-supplied connection, which the context does not dispose. MariaDB 13.0+ exposes UPDATE ... RETURNING.

public MariaDbDataContext(DbConnection connection, DataContextBuilder optionsBuilder, Version? serverVersion)

Parameters

connection DbConnection

An already-created DbConnection owned by the caller.

optionsBuilder DataContextBuilder

The options collected from DataContextBuilder.

serverVersion Version

The MariaDB server version, or null for unset.

MariaDbDataContext(string, DataContextBuilder)

Creates a MariaDB context that owns a connection built lazily from connectionString. The context is unversioned: no version-gated form is emitted.

public MariaDbDataContext(string connectionString, DataContextBuilder optionsBuilder)

Parameters

connectionString string

The connection string used to create the MySqlConnection.

optionsBuilder DataContextBuilder

The options collected from DataContextBuilder.

MariaDbDataContext(string, DataContextBuilder, Version?)

Creates a version-aware MariaDB context that owns a connection built lazily from connectionString. MariaDB 13.0+ exposes UPDATE ... RETURNING.

public MariaDbDataContext(string connectionString, DataContextBuilder optionsBuilder, Version? serverVersion)

Parameters

connectionString string

The connection string used to create the MySqlConnection.

optionsBuilder DataContextBuilder

The options collected from DataContextBuilder.

serverVersion Version

The MariaDB server version, or null for unset.

Properties

Dialect

The MariaDB SQL dialect (version-aware when a server version was supplied).

public override ISqlDialect Dialect { get; }

Property Value

ISqlDialect

TimeOnlyProjectionRefusal

MariaDB inherits the MySQL duration semantics but carries its own message: the refusal names the server the connection actually reached instead of borrowing the MySQL text.

protected override string? TimeOnlyProjectionRefusal { get; }

Property Value

string