Exemplo n.º 1
0
        // Model nedir ?
        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Configurations.Add(new EmployeeMap());
            DepartmentMap.Map(modelBuilder);

            modelBuilder.Conventions.Remove <PluralizingTableNameConvention>();
        }
Exemplo n.º 2
0
 protected override void OnModelCreating(DbModelBuilder modelBuilder)
 {
     EmployeeMap.Map(modelBuilder);
     DepartmentMap.Map(modelBuilder);
 }