Skip to content

Commit

Permalink
Fixed "OnModelCrating" typo (#4114)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhenley committed Nov 5, 2022
1 parent 0128cd1 commit afdf606
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entity-framework/core/what-is-new/ef-core-7.0/whatsnew.md
Original file line number Diff line number Diff line change
Expand Up @@ -1786,7 +1786,7 @@ EntityType: Post

So why didn't our convention override the explicitly configured max length? The answer is that EF Core keeps track of how every piece of configuration was made. This is represented by the <xref:Microsoft.EntityFrameworkCore.Metadata.ConfigurationSource> enum. The different kinds of configuration are:

- `Explicit`: The model element was explicitly configured in `OnModelCrating`
- `Explicit`: The model element was explicitly configured in `OnModelCreating`
- `DataAnnotation`: The model element was configured using a mapping attribute (aka data annotation) on the CLR type
- `Convention`: The model element was configured by a model building convention

Expand Down

0 comments on commit afdf606

Please sign in to comment.