Don't force NullabilityInfoContextSupport to be on
Open
area-aot
area-model-building
breaking-change
- Dominant language
- C#
- Stars
- 14.8k
- Forks
- 3.4k
- PR merge metrics
- PR metrics pending
Description
If the user uses a compiled model EF doesn't need `NullabilityInfoContext`.
Instead, we could throw when `NullabilityInfoContextSupport` is set to `false` and compiled model isn't being used.
```C#
AppContext.TryGetSwitch("System.Reflection.NullabilityInfoContext.IsSupported", out bool isSupported)
```
Contributor guide
Assessment
This issue has not been assessed yet.