EF Core Model (code first) - mapping string to varchar with length spiecified
i have problem with mapping string from model to database. When database is created string are always mapped to longtext. When i set default length in model setting then all string are mapped to varchar(default length). How can i change it? Even if i set validate max length to let say 50 it is always mapped to longtext or varchar with default length. Any idea how to fix it?