protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            ModelConfiguration.Configure(modelBuilder);
            var initializer = new FootballDbInitializer(modelBuilder);

            Database.SetInitializer(initializer);
        }
Exemple #2
0
        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            ConfigureTeamEntity(modelBuilder);
            ConfigureStadionEntity(modelBuilder);
            ConfigureCoachEntity(modelBuilder);
            ConfigurePlayerEntity(modelBuilder);

            var initializer = new FootballDbInitializer(modelBuilder);

            Database.SetInitializer(initializer);
        }
        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            ConfigureTeamEntity(modelBuilder);
            ConfigureStadionEntity(modelBuilder);
            ConfigurePlayerEntity(modelBuilder);

            modelBuilder.Conventions.Remove <PluralizingTableNameConvention>();

            var initializer = new FootballDbInitializer(modelBuilder);

            Database.SetInitializer(initializer);
        }