Last post Dec 16, 2019 02:22 PM by Mikesdotnetting
Dec 16, 2019 02:09 PM|BitShift|LINK
Have an application on a server and its working fine. Not getting an error yet, but if someone adds a few columns to a table that each allow null, will this lead to model validation errors when my app runs an EF query or update? Its one thing to add a
new table that is NOT included in the EF data model, but adding columns to a table that is part of the EF data model seems like it could cause issues. Will it? I'm going to test this scenario since it seems to come up from time to time.
Dec 16, 2019 02:22 PM|Mikesdotnetting|LINK
No it shouldn't cause problems. EF doesn't care about nullable columns that don't map to properties on entity classes. Unless they are mapped (either by adjusting the entity classes or by performing a migration), as far as EF Core is concerned, the columns
won't exist at all.