You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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