EntityFrameworkCore.FSharp 6.0.7

.NET 5.0
dotnet add package EntityFrameworkCore.FSharp --version 6.0.7
NuGet\Install-Package EntityFrameworkCore.FSharp -Version 6.0.7
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="EntityFrameworkCore.FSharp" Version="6.0.7" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EntityFrameworkCore.FSharp --version 6.0.7
#r "nuget: EntityFrameworkCore.FSharp, 6.0.7"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install EntityFrameworkCore.FSharp as a Cake Addin
#addin nuget:?package=EntityFrameworkCore.FSharp&version=6.0.7

// Install EntityFrameworkCore.FSharp as a Cake Tool
#tool nuget:?package=EntityFrameworkCore.FSharp&version=6.0.7


Add F# design time support to EF Core.

For a basic introduction to running code-first migrations, please see the getting started guide.


Build Status


Package Stable Prerelease
EFCore.FSharp NuGet Badge NuGet Badge


Install the package from NuGet and follow our Getting Started guide or our full documentation at https://efcore.github.io/EFCore.FSharp

Currently created migrations must be manually added to your solution in the correct order. Although migrations are created with sequential file names so a glob can also be used

<Compile Include="Migrations/*.fs" />


> build.cmd <optional buildtarget> // on windows
$ ./build.sh  <optional buildtarget>// on unix

After building the solution, it will create a NuGet package in the dist folder. This can then be referenced as usual.


Make sure the following requirements are installed on your system:


Environment Variables

  • CONFIGURATION will set the configuration of the dotnet commands. If not set, it will default to Release.
    • CONFIGURATION=Debug ./build.sh will result in -c additions to commands such as in dotnet build -c Debug
  • GITHUB_TOKEN will be used to upload release notes and Nuget packages to GitHub.
    • Be sure to set this before releasing
  • DISABLE_COVERAGE Will disable running code coverage metrics. AltCover can have severe performance degradation so it's worth disabling when looking to do a quicker feedback loop.
    • DISABLE_COVERAGE=1 ./build.sh

Build Targets

  • Clean - Cleans artifact and temp directories.
  • DotnetRestore - Runs dotnet restore on the solution file.
  • DotnetBuild - Runs dotnet build on the solution file.
  • DotnetTest - Runs dotnet test on the solution file.
  • GenerateCoverageReport - Code coverage is run during DotnetTest and this generates a report via ReportGenerator.
  • WatchTests - Runs dotnet watch with the test projects. Useful for rapid feedback loops.
  • GenerateAssemblyInfo - Generates AssemblyInfo for libraries.
  • DotnetPack - Runs dotnet pack. This includes running Source Link.
  • SourceLinkTest - Runs a Source Link test tool to verify Source Links were properly generated.
  • PublishToNuGet - Publishes the NuGet packages generated in DotnetPack to NuGet via paket push.
  • GitRelease - Creates a commit message with the Release Notes and a git tag via the version in the Release Notes.
  • GitHubRelease - Publishes a GitHub Release with the Release Notes and any NuGet packages.
  • FormatCode - Runs Fantomas on the solution file.
  • BuildDocs - Generates Documentation from docsSrc and the XML Documentation Comments from your libraries in src.
  • WatchDocs - Generates documentation and starts a webserver locally. It will rebuild and hot reload if it detects any changes made to docsSrc files, libraries in src, or the docsTool itself.
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on EntityFrameworkCore.FSharp:

Repository Stars
Bring power of Linq To DB to Entity Framework Core projects
Version Downloads Last updated
6.0.7 7,304 6/26/2022
6.0.6 1,928 1/16/2022
6.0.5 376 11/30/2021
6.0.4 964 11/29/2021
6.0.3 560 11/21/2021
6.0.2 262 11/13/2021
6.0.1 210 11/10/2021
6.0.0 195 11/9/2021
5.0.3 1,529 10/16/2021
5.0.3-beta006 822 8/17/2021
5.0.3-beta005 146 8/9/2021
5.0.3-beta004 334 6/16/2021
5.0.3-beta003 1,143 5/27/2021
5.0.3-beta002 203 5/12/2021
5.0.3-beta001 277 5/8/2021
5.0.3-alpha9 266 4/6/2021
5.0.3-alpha8 184 4/4/2021
5.0.3-alpha7 162 4/1/2021
5.0.3-alpha6 153 4/1/2021
5.0.3-alpha5 153 3/31/2021
5.0.3-alpha3 163 3/31/2021
5.0.3-alpha2 172 3/27/2021
5.0.3-alpha10 187 4/18/2021
5.0.3-alpha1 185 3/21/2021

## [6.0.7] - 2022-06-26

[6.0.7]: https://github.com/efcore/EFCore.FSharp/compare/v6.0.6...v6.0.7

### Fixed
- Change return type of helper methods in `DbContextHelpers` from `obj` to `'a`