示例#1
0
        public void Configure(IApplicationBuilder app, IHostingEnvironment env)
        {
            ShippingContext.CreateSeedData();

            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }

            app.UseCors("AllowAllOrigins");
            app.UseMvc();
        }
 public static void Main(string[] args)
 {
     ShippingContext.CreateSeedData();
     CreateHostBuilder(args).Build().Run();
 }