Setting default global configuration for.NET types in Entity Framework. By default Entity Framework converts strings to nvarchar(MAX) in SQL Server which isn’t ideal. We can configure this mapping in OnModelCreating on an entity by entity and property by property basis like so.
Sort: