FileContextCore 2.1.0
See the version list below for details.
dotnet add package FileContextCore --version 2.1.0
NuGet\Install-Package FileContextCore -Version 2.1.0
<PackageReference Include="FileContextCore" Version="2.1.0" />
paket add FileContextCore --version 2.1.0
#r "nuget: FileContextCore, 2.1.0"
// Install FileContextCore as a Cake Addin #addin nuget:?package=FileContextCore&version=2.1.0 // Install FileContextCore as a Cake Tool #tool nuget:?package=FileContextCore&version=2.1.0
FileContextCore
FileContextCore is a "Database"-Provider for Entity Framework Core and adds the ability to store information in files instead of being limited to databases. It enables fast developments because of the advantage of just copy, edit and delete files.
This framework bases on the idea of FileContext by DevMentor (https://github.com/pmizel/DevMentor.Context.FileContext)
Advantages
- No database needed
- easy configuration
- rapid data-modelling, -modification
- share data through version-control
- supports all serializable .NET types
- integrated seamlessly into EF Core
- diferrent serializer supported (XML, JSON, CSV, Excel)
- supports encryption
- supports relations
- supports multiple databases
!This extension is not intended to be used in production systems!
Install
https://www.nuget.org/packages/FileContextCore/
PM > Install-Package FileContextCore
Configure EF Core
optionsBuilder.UseFileContext();
or
services.AddEntityFramework().AddDbContext<Context>(options => options.UseFileContext());
Example
For an Example check out: Example
Configuration
By default the extension uses JSON
-serialization and the DefaultFileManager
Available Serializer
XMLSerializer
Serializes data using System.XML
optionsBuilder.UseFileContext("xml");
CSVSerializer
Serializes data using CsvHelper (https://joshclose.github.io/CsvHelper/)
optionsBuilder.UseFileContext("csv");
JSONSerializer
Serializes data using Newtonsoft Json.NET (http://www.newtonsoft.com/json)
optionsBuilder.UseFileContext("json");
BSONSerializer
Serializes data to bson using Newtonsoft Json.NET (http://www.newtonsoft.com/json)
optionsBuilder.UseFileContext("bson");
EXCELSerializer
Saves files into an .xlsx-file and enables the quick editing of the data using Excel
Uses EEPlus implementation for .Net Core (https://github.com/VahidN/EPPlus.Core)
optionsBuilder.UseFileContext("excel");
//use password
optionsBuilder.UseFileContext("excel:password");
To run on Linux-Systems
sudo apt-get update
sudo apt-get install libgdiplus
File Manager
DefaultFileManager
Saves the data into files
optionsBuilder.UseFileContext("json", "default");
EncryptedFileManager
Encrypts the data and saves them into files
optionsBuilder.UseFileContext("json", "encrypted:password");
Multiple Databases
You can define a name for your database and all the corresponding data will saved in a subfolder. So you are able to use FileContext with multiple DbContext-configurations.
optionsBuilder.UseFileContext(databasename: "database");
Author
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.1 is compatible. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
-
.NETCoreApp 2.1
- CsvHelper (>= 7.1.1)
- EPPlus.Core (>= 1.5.4)
- Microsoft.EntityFrameworkCore (>= 2.1.1)
- Newtonsoft.Json (>= 11.0.2)
- Newtonsoft.Json.Bson (>= 1.0.1)
- System.Xml.XmlSerializer (>= 4.3.0)
NuGet packages (5)
Showing the top 5 NuGet packages that depend on FileContextCore:
Package | Downloads |
---|---|
EDennis.NetCoreTestingUtilities
Provides various classes that assist with .NET Core 3 unit testing. |
|
RealtimeDatabase
A .NET Core Extension for Entity Framework Core to enable Realtime Capability. |
|
AvantiPoint.MobileAuth
The MobileAuth Library is designed to quickly stand up an OAuth endpoint for Apple, Google, & Microsoft providers with the flexibility of customizing additional ones or only providing ones that you provide a configuration for. This makes it easy to stand up a minimal API with only a few lines of code. |
|
Gtt.Uc.EntityFramework
Package Description |
|
FileContextCore.AzureBlobStorageFileManager
Azure blob storage implementation for the File Context Core package. It allows to use EntityFramework Core without a database, just using a file located in an Azure blob storage as database |
GitHub repositories (2)
Showing the top 2 popular GitHub repositories that depend on FileContextCore:
Repository | Stars |
---|---|
SapphireDb/SapphireDb
SapphireDb Server, a self-hosted, easy to use realtime database for Asp.Net Core and EF Core
|
|
mguinness/IdentityManagerUI
Identity management system for ASP.NET Core Identity.
|
Version | Downloads | Last updated |
---|---|---|
3.4.0 | 47,003 | 6/7/2020 |
3.3.0 | 1,959 | 3/19/2020 |
3.2.3 | 1,022 | 3/18/2020 |
3.2.2 | 18,112 | 11/1/2019 |
3.2.1 | 1,077 | 11/1/2019 |
3.2.0 | 1,083 | 10/30/2019 |
3.0.1 | 1,195 | 10/29/2019 |
3.0.0 | 1,899 | 8/23/2019 |
2.2.6 | 1,271 | 8/7/2019 |
2.2.0 | 1,454 | 1/3/2019 |
2.1.4 | 1,382 | 10/26/2018 |
2.1.0 | 1,763 | 6/22/2018 |
2.0.1 | 1,833 | 1/13/2018 |
1.0.9 | 1,817 | 7/2/2017 |
1.0.8 | 1,713 | 5/27/2017 |
1.0.7 | 1,760 | 3/28/2017 |
1.0.6 | 1,672 | 3/25/2017 |
1.0.5 | 1,899 | 3/25/2017 |
1.0.4 | 1,768 | 3/24/2017 |
1.0.3 | 1,796 | 3/24/2017 |
1.0.2 | 1,712 | 3/24/2017 |
1.0.1 | 1,794 | 3/24/2017 |
1.0.0 | 1,748 | 3/23/2017 |