ServantSoftware.EFCore.Csv 1.0.1

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

ServantSoftware.EFCore.Csv

Nuget

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

dotnet add package ServantSoftware.EFCore.Csv

Usage

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

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

This allows you to perform standard EF Core operations on your CSV data source. This provider is based on the CSV 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.Csv 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 88 6/12/2026
1.0.0.432 99 6/12/2026
1.0.0.431 134 5/17/2026
1.0.0.430 93 5/17/2026
1.0.0.429 94 5/17/2026
1.0.0.428 90 5/17/2026
1.0.0.427 94 5/17/2026
1.0.0.426 338 4/6/2026
1.0.0.425 108 4/6/2026
1.0.0.424 101 4/5/2026
1.0.0.423 183 3/23/2026
1.0.0.422 99 3/23/2026
1.0.0.421 98 3/23/2026
1.0.0.420 93 3/23/2026
1.0.0.419 96 3/22/2026
1.0.0.418 91 3/22/2026
1.0.0.417 98 3/22/2026
1.0.0.416 109 3/22/2026
1.0.0.415 100 3/22/2026
1.0.0.414 99 3/22/2026
Loading failed