efcore
efcore copied to clipboard
MutableEntityTypeExtensions.GetOrAddProperty
Attempted to upgrade project from net core 2.2 to 3.1 but MutableEntityTypeExtensions GetOrAddProperty method does not exist in net core 3.1. I cannot find any documentation on depreciation or reason for removal.
EF Core version: 3.1 Database provider: Microsoft.EntityFrameworkCore Target framework: Net core 3.1
It was part of Metadata cleanup. You can use
var property = entityType.FindProperty("") ?? entityType.AddProperty("");
Thank for the quick response.