Table of Contents

Class MySqlTools

Namespace
LinqToDB.DataProvider.MySql
Assembly
linq2db.dll
public static class MySqlTools
Inheritance
MySqlTools

Properties

DefaultBulkCopyType

[Obsolete("Use MySqlOptions.Default.BulkCopyType instead.")]
public static BulkCopyType DefaultBulkCopyType { get; set; }

Property Value

BulkCopyType

DetectedProviderName

public static string DetectedProviderName { get; }

Property Value

string

Methods

AsMySql<TSource>(ITable<TSource>)

[Sql.QueryExtension(null, Sql.QueryExtensionScope.None, typeof(NoneExtensionBuilder))]
public static IMySqlSpecificTable<TSource> AsMySql<TSource>(this ITable<TSource> table) where TSource : notnull

Parameters

table ITable<TSource>

Returns

IMySqlSpecificTable<TSource>

Type Parameters

TSource

AsMySql<TSource>(IQueryable<TSource>)

[Sql.QueryExtension(null, Sql.QueryExtensionScope.None, typeof(NoneExtensionBuilder))]
public static IMySqlSpecificQueryable<TSource> AsMySql<TSource>(this IQueryable<TSource> source) where TSource : notnull

Parameters

source IQueryable<TSource>

Returns

IMySqlSpecificQueryable<TSource>

Type Parameters

TSource

CreateDataConnection(DbConnection, string?)

public static DataConnection CreateDataConnection(DbConnection connection, string? providerName = null)

Parameters

connection DbConnection
providerName string

Returns

DataConnection

CreateDataConnection(DbTransaction, string?)

public static DataConnection CreateDataConnection(DbTransaction transaction, string? providerName = null)

Parameters

transaction DbTransaction
providerName string

Returns

DataConnection

CreateDataConnection(string, string?)

public static DataConnection CreateDataConnection(string connectionString, string? providerName = null)

Parameters

connectionString string
providerName string

Returns

DataConnection

GetDataProvider(string?)

public static IDataProvider GetDataProvider(string? providerName = null)

Parameters

providerName string

Returns

IDataProvider

ResolveMySql(Assembly)

public static void ResolveMySql(Assembly assembly)

Parameters

assembly Assembly

ResolveMySql(string, string?)

public static void ResolveMySql(string path, string? assemblyName)

Parameters

path string
assemblyName string