Class MariaDbDataContext
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
connectionDbConnectionAn already-created
DbConnectionowned by the caller.optionsBuilderDataContextBuilderThe 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
connectionDbConnectionAn already-created
DbConnectionowned by the caller.optionsBuilderDataContextBuilderThe options collected from
DataContextBuilder.serverVersionVersionThe 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
connectionStringstringThe connection string used to create the
MySqlConnection.optionsBuilderDataContextBuilderThe 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
connectionStringstringThe connection string used to create the
MySqlConnection.optionsBuilderDataContextBuilderThe options collected from
DataContextBuilder.serverVersionVersionThe 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
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; }