elsa-core/src/persistence/Elsa.Persistence.EntityFramework/Elsa.Persistence.EntityFramework.Sqlite
2021-01-08 17:40:32 +01:00
..
Migrations Remove unused namespaces 2021-01-08 17:40:32 +01:00
Elsa.Persistence.EntityFramework.Sqlite.csproj EF Core Persistence Provider (#557) 2021-01-07 13:01:19 +01:00
FodyWeavers.xml Add weavers 2021-01-07 13:02:04 +01:00
Readme.md EF Core Persistence Provider (#557) 2021-01-07 13:01:19 +01:00
SqliteElsaContextFactory.cs EF Core Persistence Provider (#557) 2021-01-07 13:01:19 +01:00

Entity Framework Core Commands

Generate Migrations

dotnet ef migrations add Initial
dotnet ef migrations add Update1
dotnet ef migrations add Update2

etc..

Optionally, specify a connection string:

dotnet ef migrations add Initial -- "{connection string}"
dotnet ef migrations add Update1 -- "{connection string}"
dotnet ef migrations add Update2 -- "{connection string}"

Apply Migrations

dotnet ef database update -- "{connection string}"