We have an application that was created with Entity Framework 6.0 and uses Code First to create our database schema. The DBA has created a new column in production on an already existing table and wants us to map to it.
Looking at Entity Framework 4.1 code first mapping to already existing database table I see the mention of using Ignore
, but we want the field to be mapped; we just don't want to create it.
Worst case, we'll have the DBA copy the columns values to a new temp column, create it with code first in the traditional way, then copy it back. We'd rather have code first deal with it if possible, though. Ideally it would create the column in dev/test/uat environments if it doesn't exist, but not delete it in production.