Skip to content

Commit 4cabd27

Browse files
committed
2 parents 4d733a2 + 19c369c commit 4cabd27

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The structure of the statements is influenced by the [SQLite Language Specificat
1919
You will find an extensive usage of the composite pattern.
2020

2121
## How to use
22-
If you want to let the Entity Framework create the database, if it does not exist, just set `SqliteDropCreateDatabaseAlways<>` or `SqliteCreateDatabaseIfNotExists` as your `IDbInitializer`.
22+
If you want to let the Entity Framework create the database, if it does not exist, just set `SqliteDropCreateDatabaseAlways<>` or `SqliteCreateDatabaseIfNotExists<>` as your `IDbInitializer<>`.
2323
```csharp
2424
public class MyDbContext : DbContext
2525
{
@@ -36,7 +36,7 @@ public class MyDbContext : DbContext
3636
```
3737

3838
In a more advanced scenario you may want to populate some core- or test-data after the database was created.
39-
To do this, inherit from `SqliteDropCreateDatabaseAlways<>` or `SqliteCreateDatabaseIfNotExists` and override the `Seed(MyDbContext context)` function.
39+
To do this, inherit from `SqliteDropCreateDatabaseAlways<>` or `SqliteCreateDatabaseIfNotExists<>` and override the `Seed(MyDbContext context)` function.
4040
This function will be called, in a own transaction, right after the database was created. This function is only executed if a new database was successfully created.
4141
```csharp
4242
public class MyDbContextContextInitializer : SqliteDropCreateDatabaseAlways<MyDbContext>

SQLite.CodeFirst/SqliteDropCreateDatabaseAlways.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33

44
namespace SQLite.CodeFirst
55
{
6-
public class SqliteDropCreateDatabaseAlwaysInitializerBase<TContext> : SqliteInitializerBase<TContext>
6+
public class SqliteDropCreateDatabaseAlways<TContext> : SqliteInitializerBase<TContext>
77
where TContext : DbContext
88
{
9-
public SqliteDropCreateDatabaseAlwaysInitializerBase(string connectionString, DbModelBuilder modelBuilder)
9+
public SqliteDropCreateDatabaseAlways(string connectionString, DbModelBuilder modelBuilder)
1010
: base(connectionString, modelBuilder) { }
1111

1212
public override void InitializeDatabase(TContext context)

0 commit comments

Comments
 (0)