There might be some nuance to this question since previous questions describe a similar problem, but their suggestions don't seem to work in our project. The project uses Entity Framework 6.1 and a database first design pattern and the T4 code generation strategy. We have a number of views that generate calculated values that we know will always have a default value, but Entity Framework keeps changing the properties to Nullable
manually updating the properties works, but as soon as the EDMX is updated it reverts back to Nullable
.
Is there a way to force Entity Framework to not default to Nullable
properties? Ideally this is a pattern we can keep following since we use a number of views and constantly needing to update properties is quite tedious.