This commit is contained in:
parent
519fe66a06
commit
57b64fda05
|
@ -1,8 +1,8 @@
|
||||||
:start
|
:start
|
||||||
::定义版本
|
::定义版本
|
||||||
set EFCORE2=2.2.0.14
|
set EFCORE2=2.2.0.15
|
||||||
set EFCORE3=3.2.0.14
|
set EFCORE3=3.2.0.15
|
||||||
set EFCORE5=5.2.0.14
|
set EFCORE5=5.2.0.15
|
||||||
|
|
||||||
::删除所有bin与obj下的文件
|
::删除所有bin与obj下的文件
|
||||||
@echo off
|
@echo off
|
||||||
|
|
|
@ -23,7 +23,7 @@ namespace ShardingCore.VirtualRoutes.Months
|
||||||
|
|
||||||
var tails=new List<string>();
|
var tails=new List<string>();
|
||||||
//提前创建表
|
//提前创建表
|
||||||
var nowTimeStamp =ShardingCoreHelper.GetNextMonthFirstDay(beginTime);
|
var nowTimeStamp =ShardingCoreHelper.GetNextMonthFirstDay(DateTime.Now);
|
||||||
if (beginTime > nowTimeStamp)
|
if (beginTime > nowTimeStamp)
|
||||||
throw new ArgumentException("起始时间不正确无法生成正确的表名");
|
throw new ArgumentException("起始时间不正确无法生成正确的表名");
|
||||||
var currentTimeStamp = beginTime;
|
var currentTimeStamp = beginTime;
|
||||||
|
|
|
@ -23,7 +23,7 @@ namespace ShardingCore.VirtualRoutes.Weeks
|
||||||
|
|
||||||
var tails=new List<string>();
|
var tails=new List<string>();
|
||||||
//提前创建表
|
//提前创建表
|
||||||
var nowTimeStamp =beginTime.AddDays(7).Date;
|
var nowTimeStamp = DateTime.Now.AddDays(7).Date;
|
||||||
if (beginTime > nowTimeStamp)
|
if (beginTime > nowTimeStamp)
|
||||||
throw new ArgumentException("起始时间不正确无法生成正确的表名");
|
throw new ArgumentException("起始时间不正确无法生成正确的表名");
|
||||||
var currentTimeStamp = beginTime;
|
var currentTimeStamp = beginTime;
|
||||||
|
|
|
@ -23,7 +23,7 @@ namespace ShardingCore.VirtualRoutes.Weeks
|
||||||
|
|
||||||
var tails=new List<string>();
|
var tails=new List<string>();
|
||||||
//提前创建表
|
//提前创建表
|
||||||
var nowTimeStamp =beginTime.AddDays(7).Date;
|
var nowTimeStamp = DateTime.Now.AddDays(7).Date;
|
||||||
if (beginTime > nowTimeStamp)
|
if (beginTime > nowTimeStamp)
|
||||||
throw new ArgumentException("起始时间不正确无法生成正确的表名");
|
throw new ArgumentException("起始时间不正确无法生成正确的表名");
|
||||||
var currentTimeStamp = beginTime;
|
var currentTimeStamp = beginTime;
|
||||||
|
|
|
@ -23,7 +23,7 @@ namespace ShardingCore.VirtualRoutes.Years
|
||||||
|
|
||||||
var tails=new List<string>();
|
var tails=new List<string>();
|
||||||
//提前创建表
|
//提前创建表
|
||||||
var nowTimeStamp =beginTime.AddYears(1).Date;
|
var nowTimeStamp = DateTime.Now.AddYears(1).Date;
|
||||||
if (beginTime > nowTimeStamp)
|
if (beginTime > nowTimeStamp)
|
||||||
throw new ArgumentException("起始时间不正确无法生成正确的表名");
|
throw new ArgumentException("起始时间不正确无法生成正确的表名");
|
||||||
var currentTimeStamp = beginTime;
|
var currentTimeStamp = beginTime;
|
||||||
|
|
|
@ -23,7 +23,7 @@ namespace ShardingCore.VirtualRoutes.Years
|
||||||
|
|
||||||
var tails=new List<string>();
|
var tails=new List<string>();
|
||||||
//提前创建表
|
//提前创建表
|
||||||
var nowTimeStamp =beginTime.AddYears(1).Date;
|
var nowTimeStamp = DateTime.Now.AddYears(1).Date;
|
||||||
if (beginTime > nowTimeStamp)
|
if (beginTime > nowTimeStamp)
|
||||||
throw new ArgumentException("起始时间不正确无法生成正确的表名");
|
throw new ArgumentException("起始时间不正确无法生成正确的表名");
|
||||||
var currentTimeStamp = beginTime;
|
var currentTimeStamp = beginTime;
|
||||||
|
|
Loading…
Reference in New Issue