Exemplo n.º 1
0
 void Application_Start(object sender, EventArgs e)
 {
     BaseDbInstanceManger.RegisterType();
     InstanceManger.RegisterType();
     // 在应用程序启动时运行的代码
     BaseDatabaseConfig.SetDbInfo();
     AutoMapConfig.CreateMaps();
     AreaRegistration.RegisterAllAreas();
     GlobalConfiguration.Configure(WebApiConfig.Register);
     RouteConfig.RegisterRoutes(RouteTable.Routes);
 }
 public static void MyClassInitialize(TestContext testContext)
 {
     BaseDbInstanceManger.RegisterType();
     BaseDatabaseConfig.SetDbInfo();
     AutoMapConfig.CreateMaps();
 }