ServantSoftware.EFCore.Xml 1.0.1

dotnet add package ServantSoftware.EFCore.Xml --version 1.0.1
                    
NuGet\Install-Package ServantSoftware.EFCore.Xml -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.Xml" 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.Xml" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="ServantSoftware.EFCore.Xml" />
                    
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.Xml --version 1.0.1
                    
#r "nuget: ServantSoftware.EFCore.Xml, 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.Xml@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.Xml&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=ServantSoftware.EFCore.Xml&version=1.0.1
                    
Install as a Cake Tool

ServantSoftware.EFCore.Xml

Nuget

ServantSoftware.EFCore.Xml is an EF Core provider that allows you to use XML 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 XML 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.Xml provider using NuGet:

dotnet add package ServantSoftware.EFCore.Xml

Usage

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

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

This allows you to perform standard EF Core operations on your XML data source. This provider is based on the XML 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.Xml 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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.1 86 6/12/2026
1.0.0.432 107 6/12/2026
1.0.0.431 138 5/17/2026
1.0.0.430 92 5/17/2026
1.0.0.429 87 5/17/2026
1.0.0.428 91 5/17/2026
1.0.0.427 92 5/17/2026
1.0.0.426 338 4/6/2026
1.0.0.425 105 4/6/2026
1.0.0.424 100 4/5/2026
1.0.0.423 179 3/23/2026
1.0.0.422 101 3/23/2026
1.0.0.421 97 3/23/2026
1.0.0.420 97 3/23/2026
1.0.0.419 90 3/22/2026
1.0.0.418 99 3/22/2026
1.0.0.417 100 3/22/2026
1.0.0.416 103 3/22/2026
1.0.0.415 98 3/22/2026
1.0.0.414 104 3/22/2026
Loading failed