ServantSoftware.EFCore.Json 1.0.1

dotnet add package ServantSoftware.EFCore.Json --version 1.0.1
                    
NuGet\Install-Package ServantSoftware.EFCore.Json -Version 1.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ServantSoftware.EFCore.Json" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ServantSoftware.EFCore.Json" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="ServantSoftware.EFCore.Json" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ServantSoftware.EFCore.Json --version 1.0.1
                    
#r "nuget: ServantSoftware.EFCore.Json, 1.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ServantSoftware.EFCore.Json@1.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ServantSoftware.EFCore.Json&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=ServantSoftware.EFCore.Json&version=1.0.1
                    
Install as a Cake Tool

ServantSoftware.EFCore.Json

Nuget

ServantSoftware.EFCore.Json is an EF Core provider that allows you to use JSON files as a data source. It's currently in an alpha state, primarily focusing on specific "happy paths" needed for SettingsOnEF and our main product, MockDB. We encourage community contributions to enhance its features and cover a broader range of scenarios.

Features

  • Seamless integration with EF Core.
  • Allows JSON files to act as data sources for EF Core.
  • Optimized for specific scenarios to support the main product.
  • Easy setup and configuration.

Getting Started

Prerequisites

  • .NET 7.0 or later.
  • EF Core compatible version.

Installation

Install the ServantSoftware.EFCore.Json provider using NuGet:

dotnet add package ServantSoftware.EFCore.Json

Usage

After installing the package, you can configure your DbContext to use the JSON provider:

public class MyDbContext : DbContext
{
    protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
    {
        var connectionString = new FileConnectionString() { DataSource = "path/to/your/data.json" };
        optionsBuilder.UseJson(connectionString);
    }
}

This allows you to perform standard EF Core operations on your JSON data source. This provider is based on the JSON ADO.NET Provider. Refer to it for details connection string options.

Contributing

We're open to contributions! Please read contributing guidelines for details on our code of conduct, and the process for submitting pull requests.

Limitations

Being in its alpha state, the ServantSoftware.EFCore.Json provider primarily addresses specific scenarios vital for our product MockDB. Some advanced EF Core features might not be fully supported yet. We are eagerly awaiting community contributions to improve and extend its capabilities.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Acknowledgments

  • Thanks to the .NET Foundation and EF Core teams for providing an exceptional framework.
  • Huge thanks to all who are considering contributing to this nascent project!
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on ServantSoftware.EFCore.Json:

Package Downloads
ServantSoftware.SettingsOnEF.Json

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.1 87 6/12/2026
1.0.0.432 98 6/12/2026
1.0.0.431 139 5/17/2026
1.0.0.430 92 5/17/2026
1.0.0.429 96 5/17/2026
1.0.0.428 98 5/17/2026
1.0.0.427 93 5/17/2026
1.0.0.426 344 4/6/2026
1.0.0.425 111 4/6/2026
1.0.0.424 108 4/5/2026
1.0.0.423 185 3/23/2026
1.0.0.422 104 3/23/2026
1.0.0.421 98 3/23/2026
1.0.0.420 96 3/23/2026
1.0.0.419 96 3/22/2026
1.0.0.418 94 3/22/2026
1.0.0.417 95 3/22/2026
1.0.0.416 104 3/22/2026
1.0.0.415 101 3/22/2026
1.0.0.414 93 3/22/2026
Loading failed