Dotnet, Efcore.
[MaxLength(250)] public string? LinkedInUrl { get;set; } [Unicode(false)] [Required(false)] [MaxLength(100)] public string? YouTubeUrl { get;set; } } As the annotations are implemented directly in the entity, they are also valid for all databases in which the entity is used. CONFIGURATIONS