EntityFrameworkCore.FSharp
5.0.3
See the version list below for details.
dotnet add package EntityFrameworkCore.FSharp --version 5.0.3
NuGet\Install-Package EntityFrameworkCore.FSharp -Version 5.0.3
<PackageReference Include="EntityFrameworkCore.FSharp" Version="5.0.3" />
paket add EntityFrameworkCore.FSharp --version 5.0.3
#r "nuget: EntityFrameworkCore.FSharp, 5.0.3"
// Install EntityFrameworkCore.FSharp as a Cake Addin #addin nuget:?package=EntityFrameworkCore.FSharp&version=5.0.3 // Install EntityFrameworkCore.FSharp as a Cake Tool #tool nuget:?package=EntityFrameworkCore.FSharp&version=5.0.3
EFCore.FSharp
Add F# design time support to EF Core.
For a basic introduction to running code-first migrations, please see the getting started guide.
Builds
NuGet
Package | Stable | Prerelease |
---|---|---|
EFCore.FSharp |
Usage
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" />
Building
> 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.
Developing
Make sure the following requirements are installed on your system:
- dotnet SDK 5.0 or higher
or
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 indotnet 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 duringDotnetTest
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 inDotnetPack
to NuGet via paket push.GitRelease
- Creates a commit message with the Release Notes and a git tag via the version in theRelease Notes
.GitHubRelease
- Publishes a GitHub Release with the Release Notes and any NuGet packages.FormatCode
- Runs Fantomas on the solution file.BuildDocs
- Generates Documentation fromdocsSrc
and the XML Documentation Comments from your libraries insrc
.WatchDocs
- Generates documentation and starts a webserver locally. It will rebuild and hot reload if it detects any changes made todocsSrc
files, libraries insrc
, or thedocsTool
itself.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. 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. |
-
net5.0
- FSharp.Core (>= 5.0.0)
- Microsoft.EntityFrameworkCore.Design (>= 5.0.3)
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 |
---|---|
linq2db/linq2db.EntityFrameworkCore
Bring power of Linq To DB to Entity Framework Core projects
|
Version | Downloads | Last updated |
---|---|---|
6.0.7 | 24,621 | 6/26/2022 |
6.0.6 | 4,776 | 1/16/2022 |
6.0.5 | 804 | 11/30/2021 |
6.0.4 | 1,379 | 11/29/2021 |
6.0.3 | 1,009 | 11/21/2021 |
6.0.2 | 680 | 11/13/2021 |
6.0.1 | 641 | 11/10/2021 |
6.0.0 | 605 | 11/9/2021 |
5.0.3 | 2,971 | 10/16/2021 |
5.0.3-beta006 | 1,509 | 8/17/2021 |
5.0.3-beta005 | 514 | 8/9/2021 |
5.0.3-beta004 | 714 | 6/16/2021 |
5.0.3-beta003 | 1,503 | 5/27/2021 |
5.0.3-beta002 | 575 | 5/12/2021 |
5.0.3-beta001 | 657 | 5/8/2021 |
5.0.3-alpha9 | 642 | 4/6/2021 |
5.0.3-alpha8 | 551 | 4/4/2021 |
5.0.3-alpha7 | 551 | 4/1/2021 |
5.0.3-alpha6 | 519 | 4/1/2021 |
5.0.3-alpha5 | 526 | 3/31/2021 |
5.0.3-alpha3 | 486 | 3/31/2021 |
5.0.3-alpha2 | 572 | 3/27/2021 |
5.0.3-alpha10 | 558 | 4/18/2021 |
5.0.3-alpha1 | 555 | 3/21/2021 |
## [5.0.3] - 2021-10-16
- Translations for `isNull` to be evaluated in-database - https://github.com/efcore/EFCore.FSharp/pull/114
[5.0.3]: https://github.com/efcore/EFCore.FSharp/releases/tag/v5.0.3
### Fixed
- Removed `DevelopmentDependency=true` as it was setting `IncludeAssets` to undesirable values when restoring package - https://github.com/efcore/EFCore.FSharp/pull/108
- Fix formatting of Nullable parameters - [@LiteracyFanatic](https://github.com/LiteracyFanatic) - https://github.com/efcore/EFCore.FSharp/pull/106
- Handle nullablility correctly in snapshot generation - https://github.com/efcore/EFCore.FSharp/pull/107
- Issues with scaffolded code
- Improved code generation for contexts scaffolded from an existing database - https://github.com/efcore/EFCore.FSharp/pull/89
- Correct issue with InsertData operations and 2D arrays
- Generate valid code in HasData method
- Fix issue with generated DbContext members in scaffolded code
- Resolved issue with migrations have a missing unit arg to the Up method if no changes in model
- Foreign Key constraints now created correctly
- Fix indentation issue when table has constraints - https://github.com/efcore/EFCore.FSharp/pull/75
- Constraints now correctly generated - https://github.com/efcore/EFCore.FSharp/pull/72
- Generated Migrations will now always include the System namespace - https://github.com/efcore/EFCore.FSharp/pull/70
- Issues with scaffolded code
- Improved code generation for contexts scaffolded from an existing database - https://github.com/efcore/EFCore.FSharp/pull/89
- Correct issue with InsertData operations and 2D arrays
- Generate valid code in HasData method
- Fix issue with generated DbContext members in scaffolded code
- Resolved issue with migrations have a missing unit arg to the Up method if no changes in model
- Foreign Key constraints now created correctly
- Fix indentation issue when table has constraints - https://github.com/efcore/EFCore.FSharp/pull/75
- Constraints now correctly generated - https://github.com/efcore/EFCore.FSharp/pull/72
- Generated Migrations will now always include the System namespace - https://github.com/efcore/EFCore.FSharp/pull/70
[Unreleased]: https://github.com/efcore/EFCore.FSharp/compare/v5.0.3-beta005...HEAD
[5.0.3-beta005]: https://github.com/efcore/EFCore.FSharp/releases/tag/v5.0.3-beta005
### Added
- Single case union support - [@lucasteles](https://github.com/lucasteles) - https://github.com/efcore/EFCore.FSharp/pull/98
- Query translation for Option types - [@lucasteles](https://github.com/lucasteles) - https://github.com/efcore/EFCore.FSharp/pull/93
- DbSet/IQueryable helpers to deal with EF Core async and nullable methods - [@lucasteles](https://github.com/lucasteles) - https://github.com/efcore/EFCore.FSharp/pull/94
- Automatic registration of DesignTimeServices - https://github.com/efcore/EFCore.FSharp/pull/86
- DbContextHelpers - curried functions for interacting with DbContext to allow for a more 'native' F# experience
- Single case union support - [@lucasteles](https://github.com/lucasteles) - https://github.com/efcore/EFCore.FSharp/pull/98
- Query translation for Option types - [@lucasteles](https://github.com/lucasteles) - https://github.com/efcore/EFCore.FSharp/pull/93
- DbSet/IQueryable helpers to deal with EF Core async and nullable methods - [@lucasteles](https://github.com/lucasteles) - https://github.com/efcore/EFCore.FSharp/pull/94
- Automatic registration of DesignTimeServices - https://github.com/efcore/EFCore.FSharp/pull/86
- DbContextHelpers - curried functions for interacting with DbContext to allow for a more 'native' F# experience