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
DefaultBulkCopyType
[Obsolete("Use SQLiteOptions.Default.BulkCopyType instead.")]
public static BulkCopyType DefaultBulkCopyType { get; set; }
Property Value
DetectedProviderName
public static string DetectedProviderName { get; }
Property Value
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
stringFor which provider ClearAllPools should be called:
- SQLiteClassic: System.Data.SQLite
- SQLiteMS: Microsoft.Data.Sqlite
null
: both (any)
CreateDataConnection(DbConnection, string?)
public static DataConnection CreateDataConnection(DbConnection connection, string? providerName = null)
Parameters
connection
DbConnectionproviderName
string
Returns
CreateDataConnection(DbTransaction, string?)
public static DataConnection CreateDataConnection(DbTransaction transaction, string? providerName = null)
Parameters
transaction
DbTransactionproviderName
string
Returns
CreateDataConnection(string, string?)
public static DataConnection CreateDataConnection(string connectionString, string? providerName = null)
Parameters
Returns
CreateDatabase(string, bool, string)
public static void CreateDatabase(string databaseName, bool deleteIfExists = false, string extension = ".sqlite")
Parameters
DropDatabase(string)
public static void DropDatabase(string databaseName)
Parameters
databaseName
string
GetDataProvider(string?)
public static IDataProvider GetDataProvider(string? providerName = null)
Parameters
providerName
string
Returns
ResolveSQLite(Assembly)
public static void ResolveSQLite(Assembly assembly)
Parameters
assembly
Assembly
ResolveSQLite(string)
public static void ResolveSQLite(string path)
Parameters
path
string