dotnet / dotnet/EntityFramework.Docs

Add usage page for F#

Open
#4,789 1 comment 1 reaction 0 assignees View on GitHub
area-global
Dominant language
Mermaid
Stars
1.7k
Forks
2k
Avg merge
7d 23h
Merged PRs (30d)
16

Description

Using EF from F# requires several specific patterns that differ from C#, and wouldn't be obvious to a beginner. We should age a page summarizing those things.

* DbSet auto-initialization is not supported (because of how F# works) - people need to explicitly initialize their DbSet properties (see [#34356](https://github.com/dotnet/efcore/issues/34356)).
* Use EF.Parameter() for parameterization (see [#12841](https://github.com/dotnet/fsharp/issues/12841))
* Use the external EFCore.FSharp package, especially for migrations and scaffolding ([see discussion](https://github.com/dotnet/efcore/issues/14572#issuecomment-2314823138))

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.