dotnet / dotnet/EntityFramework.Docs
Slightly Confusing documentation
- Dominant language
- Mermaid
- Stars
- 1.7k
- Forks
- 2k
- Avg merge
- 7d 23h
- Merged PRs (30d)
- 16
Description
in the c# sample of how to configure the lazy loading proxies i was presented with this
AddDbContext(
b => b.UseLazyLoadingProxies()
.UseSqlServer(myConnectionString));
The problem here is not everyone learning c# knows about Func and Action delegates so to call a delegate "b" here could be confusing to some whereas all the samples on the internet uses "options" as the parameter to the delegate instead of "b". I myself got confused for a moment thinking "what does "b" refer to?" It took me a couple of seconds to get it.
---
#### Document Details
⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*
* ID: 956653a9-3acf-e361-94a7-2eff333619c9
* Version Independent ID: 7c665098-afcc-1ba0-d6a2-0262ae921575
* Content: [Lazy Loading of Related Data - EF Core](https://docs.microsoft.com/en-us/ef/core/querying/related-data/lazy)
* Content Source: [entity-framework/core/querying/related-data/lazy.md](https://github.com/dotnet/EntityFramework.Docs/blob/master/entity-framework/core/querying/related-data/lazy.md)
* Product: **entity-framework**
* Technology: **entity-framework-core**
* GitHub Login: @roji
* Microsoft Alias: **avickers**
Contributor guide
Assessment
This issue has not been assessed yet.