username@email.com
2021-07-16 265f38a3f69276ae97690da64fb8e42be3a940e5
zhengcaioa/zhengcaioa/Startup.cs
@@ -69,6 +69,11 @@
            var connectionString = Configuration.GetConnectionString("DefaultConnection");
            services.AddDbContext<zhengcaioaContext>(options =>
            options.UseSqlServer(connectionString));            
            var connectionString1 = Configuration.GetConnectionString("zcwebConnection");
            services.AddDbContext<zcwebContext>(options =>
            options.UseSqlServer(connectionString1));
            services.AddControllersWithViews();
            services.AddScoped(typeof(ISimService), typeof(SimService));
@@ -140,6 +145,8 @@
            services.AddScoped(typeof(IOrderBanciService), typeof(OrderBanciService));
            services.AddScoped(typeof(IOrderBanciOrderService), typeof(OrderBanciOrderService));
            
            //zcweb
            services.AddScoped(typeof(IDtChannelArticleNewsService), typeof(DtChannelArticleNewsService));
            //定时执行
            services.AddHostedService<TimedBackgroundService>();