Class SqliteDataContextOptionsBuilderExtensions
Extension methods that configure a DataContextBuilder to use SQLite.
public static class SqliteDataContextOptionsBuilderExtensions
- Inheritance
-
SqliteDataContextOptionsBuilderExtensions
- Inherited Members
Methods
UseSqlite(DataContextBuilder, DbConnection)
Configures the builder to create SQLite contexts over the caller-supplied
connection.
public static DataContextBuilder UseSqlite(this DataContextBuilder builder, DbConnection connection)
Parameters
builderDataContextBuilderThe builder to configure.
connectionDbConnectionAn already-created connection owned by the caller.
Returns
- DataContextBuilder
The same builder, to allow chaining.
UseSqlite(DataContextBuilder, string)
Configures the builder to create SQLite contexts over the database file at
filepath (opened with Data Source='{filepath}').
public static DataContextBuilder UseSqlite(this DataContextBuilder builder, string filepath)
Parameters
builderDataContextBuilderThe builder to configure.
filepathstringPath to the SQLite database file.
Returns
- DataContextBuilder
The same builder, to allow chaining.