Beispiel #1
0
 public void Configuration(IAppBuilder app)
 {
     SDHCStartup.Init <ApplicationDbContext, SCHCContent, SDHCBascSelect, MyUser>(
         app, () => ApplicationDbContext.Create(), HostingEnvironment.MapPath("/"));
     ModelManager.ModelMapper = new Dictionary <string, Type>()
     {
         ["S1"]     = typeof(S1),
         ["S2"]     = typeof(S2),
         ["Gender"] = typeof(GenderSelect),
     };
 }
Beispiel #2
0
 public void Configuration(IAppBuilder app)
 {
     SDHCStartup.Init <ApplicationDbContext, SCHCContent, SDHCBascSelect, ApplicationUser>(
         app, () => ApplicationDbContext.Create(), HostingEnvironment.MapPath("/"));
     ModelManager.ModelMapper = new Dictionary <string, Type>()
     {
         ["PotionHP"]             = typeof(PotionHP),
         ["WeaponAxeBluePrints"]  = typeof(WeaponAxeBluePrint),
         ["WeaponClubBluePrint"]  = typeof(WeaponClubBluePrint),
         ["WeaponSwordBluePrint"] = typeof(WeaponSwordBluePrint)
     };
 }