w2bst2r
9/1/2018 - 11:37 AM

Set up entity framework to handle migrations

This code will enable entity framework to take care of migrations automatically. It will perform update and create database operations instead of performing them manually at each migration.

        public Configuration()
        {
            AutomaticMigrationsEnabled = true;
            AutomaticMigrationDataLossAllowed = true;
        }