Commit 05f2ac8e by guanzhenshan

更新一下

parent e28c2ff2
...@@ -7,21 +7,21 @@ namespace Bailun.DC.SkuDailyPurchaseAndSales ...@@ -7,21 +7,21 @@ namespace Bailun.DC.SkuDailyPurchaseAndSales
{ {
class Program class Program
{ {
//static async Task Main(string[] args) static async Task Main(string[] args)
//{ {
// Console.WriteLine("进入保存每日采购数和售出数"); Console.WriteLine("进入保存每日采购数和售出数");
// var builder = new HostBuilder().ConfigureServices((hostContext, services) => var builder = new HostBuilder().ConfigureServices((hostContext, services) =>
// {
// services.AddHostedService<Services>();
// });
// await builder.RunConsoleAsync();
//}
static void Main(string[] args)
{ {
new Services().Init(DateTime.Parse("2019-08-07"),DateTime.Parse("2019-08-08")); services.AddHostedService<Services>();
});
await builder.RunConsoleAsync();
} }
//static void Main(string[] args)
//{
// new Services().Init(DateTime.Parse("2019-08-07"),DateTime.Parse("2019-08-08"));
//}
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment