http://stackoverflow.com/questions/23413625/entity-framework-default-datetime-annotation-does-not-migrate
AddColumn("dbo.Specialty",
"CreatedDate",
c => c.DateTime(defaultValueSql: "GETDATE()"));
Отменить Migration и включить автоматическую Migration
http://stackoverflow.com/questions/11679385/reset-entity-framework-migrations
You need to delete the state:
Then run the following command in the Package Manager Console:
|
Комментариев нет:
Отправить комментарий