I have a backup file of an old database where I havn't used EF. Now I create a new database with EF code first fluent api with table per hierachy. That's why I have a not-nullable discriminator column. In my backup file there is no discriminator. So when I try to restore my old backup file an exception is thrown because of trying to insert a NULL value into the discriminator column.
Is it possible to set a default value (with help of the EF) when inserting NULL into the discriminator column?
Edit: The restore is done with help of datasets. I could add the value into the dataset but I don't want to do it like that.