FileBaseContext is a provider of Entity Framework 7 to store database information in files.
It was built for development purposes. All information is stored in files that can be added, updated, or deleted manually.
- you don't need a database
- rapid modeling
- version control supported
- supports all serializable .NET types
https://www.nuget.org/packages/FileBaseContext/
add database context to services
services.AddDbContext<ApplicationDbContext>(options => options.UseFileBaseContextDatabase("dbUser"));or configure the database context itself
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
optionsBuilder.UseFileStoreDatabase("my_local_db");
base.OnConfiguring(optionsBuilder);
}optionsBuilder.UseFileBaseContextDatabase(databaseName: "my_local_db");optionsBuilder.UseFileBaseContextDatabase(location: "C:\Temp\userDb");