Class DbContextBuilderSqliteExtensions
Extension methods that configure DbContextBuilder<T> to
use a SQLite in-memory database (plain SQLite, or SQLite with the
SQL-Server-compatibility customizations).
Inheritance
DbContextBuilderSqliteExtensions
Assembly: Wolfgang.DbContextBuilder-Core.dll
Syntax
public static class DbContextBuilderSqliteExtensions
Methods
|
Edit this page
View Source
UseSqliteForMsSqlServer<TDbContext>(DbContextBuilder<TDbContext>)
Configures the builder to use SQLite as the database provider with SQL Server-specific adjustments,
such as default value mappings, to better mimic SQL Server behavior for testing or compatibility.
Declaration
public static DbContextBuilder<TDbContext> UseSqliteForMsSqlServer<TDbContext>(this DbContextBuilder<TDbContext> builder) where TDbContext : DbContext
Parameters
Returns
Type Parameters
| Name |
Description |
| TDbContext |
|
|
Edit this page
View Source
UseSqlite<TDbContext>(DbContextBuilder<TDbContext>)
Instructs the builder to use SQLite as the database provider.
Declaration
public static DbContextBuilder<TDbContext> UseSqlite<TDbContext>(this DbContextBuilder<TDbContext> builder) where TDbContext : DbContext
Parameters
Returns
Type Parameters
| Name |
Description |
| TDbContext |
|