This commit is contained in:
xuejiaming 2021-08-29 16:22:21 +08:00
parent 519fe66a06
commit 57b64fda05
6 changed files with 8 additions and 8 deletions

View File

@ -1,8 +1,8 @@
:start
::定义版本
set EFCORE2=2.2.0.14
set EFCORE3=3.2.0.14
set EFCORE5=5.2.0.14
set EFCORE2=2.2.0.15
set EFCORE3=3.2.0.15
set EFCORE5=5.2.0.15
::删除所有bin与obj下的文件
@echo off

View File

@ -23,7 +23,7 @@ namespace ShardingCore.VirtualRoutes.Months
var tails=new List<string>();
//提前创建表
var nowTimeStamp =ShardingCoreHelper.GetNextMonthFirstDay(beginTime);
var nowTimeStamp =ShardingCoreHelper.GetNextMonthFirstDay(DateTime.Now);
if (beginTime > nowTimeStamp)
throw new ArgumentException("起始时间不正确无法生成正确的表名");
var currentTimeStamp = beginTime;

View File

@ -23,7 +23,7 @@ namespace ShardingCore.VirtualRoutes.Weeks
var tails=new List<string>();
//提前创建表
var nowTimeStamp =beginTime.AddDays(7).Date;
var nowTimeStamp = DateTime.Now.AddDays(7).Date;
if (beginTime > nowTimeStamp)
throw new ArgumentException("起始时间不正确无法生成正确的表名");
var currentTimeStamp = beginTime;

View File

@ -23,7 +23,7 @@ namespace ShardingCore.VirtualRoutes.Weeks
var tails=new List<string>();
//提前创建表
var nowTimeStamp =beginTime.AddDays(7).Date;
var nowTimeStamp = DateTime.Now.AddDays(7).Date;
if (beginTime > nowTimeStamp)
throw new ArgumentException("起始时间不正确无法生成正确的表名");
var currentTimeStamp = beginTime;

View File

@ -23,7 +23,7 @@ namespace ShardingCore.VirtualRoutes.Years
var tails=new List<string>();
//提前创建表
var nowTimeStamp =beginTime.AddYears(1).Date;
var nowTimeStamp = DateTime.Now.AddYears(1).Date;
if (beginTime > nowTimeStamp)
throw new ArgumentException("起始时间不正确无法生成正确的表名");
var currentTimeStamp = beginTime;

View File

@ -23,7 +23,7 @@ namespace ShardingCore.VirtualRoutes.Years
var tails=new List<string>();
//提前创建表
var nowTimeStamp =beginTime.AddYears(1).Date;
var nowTimeStamp = DateTime.Now.AddYears(1).Date;
if (beginTime > nowTimeStamp)
throw new ArgumentException("起始时间不正确无法生成正确的表名");
var currentTimeStamp = beginTime;