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), }; }
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) }; }