Table of Contents

Class SQLiteTools

Namespace
LinqToDB.DataProvider.SQLite
Assembly
linq2db.dll
public static class SQLiteTools
Inheritance
SQLiteTools

Properties

AlwaysCheckDbNull

[Obsolete("Use SQLiteOptions.Default.AlwaysCheckDbNull instead.")]
public static bool AlwaysCheckDbNull { get; set; }

Property Value

bool

DefaultBulkCopyType

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

Property Value

BulkCopyType

DetectedProviderName

public static string DetectedProviderName { get; }

Property Value

string

Methods

AsSQLite<TSource>(ITable<TSource>)

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

Parameters

table ITable<TSource>

Returns

ISQLiteSpecificTable<TSource>

Type Parameters

TSource

ClearAllPools(string?)

Invokes ClearAllPools() method for specified provider.

public static void ClearAllPools(string? provider = null)

Parameters

provider string

For which provider ClearAllPools should be called:

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

CreateDatabase(string, bool, string)

public static void CreateDatabase(string databaseName, bool deleteIfExists = false, string extension = ".sqlite")

Parameters

databaseName string
deleteIfExists bool
extension string

DropDatabase(string)

public static void DropDatabase(string databaseName)

Parameters

databaseName string

GetDataProvider(string?)

public static IDataProvider GetDataProvider(string? providerName = null)

Parameters

providerName string

Returns

IDataProvider

ResolveSQLite(Assembly)

public static void ResolveSQLite(Assembly assembly)

Parameters

assembly Assembly

ResolveSQLite(string)

public static void ResolveSQLite(string path)

Parameters

path string