dotnet / dotnet/EntityFramework.Docs
Document provider-conditional model building
Open
area-model-building
- Dominant language
- Mermaid
- Stars
- 1.7k
- Forks
- 2k
- Avg merge
- 7d 23h
- Merged PRs (30d)
- 16
Description
```C#
if (context.Database.IsSqlServer())
{
...
}
```
or `context.Database.ProviderName` to avoid an assembly reference
See https://learn.microsoft.com/en-us/ef/core/what-is-new/ef-core-2.0/upgrade#ef-core-relational-metadata-api-changes
Contributor guide
Assessment
This issue has not been assessed yet.