From 39dbdac6631b2318be2894fb28d3ef8d74042b2e Mon Sep 17 00:00:00 2001
From: xuejiaming <326308290@qq.com>
Date: Wed, 3 Nov 2021 08:48:24 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0readme=E7=9A=84=E6=96=87?=
=?UTF-8?q?=E6=A1=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
README.md | 4 ++++
.../Sample.Migrations/EFCores/ShardingWithDateTime.cs | 9 ++-------
samples/Sample.SqlServer/Startup.cs | 9 +--------
src/ShardingCore/IShardingConfigOption.cs | 1 +
...ractSimpleShardingYearKeyDateTimeVirtualTableRoute.cs | 2 +-
...AbstractSimpleShardingYearKeyLongVirtualTableRoute.cs | 2 +-
6 files changed, 10 insertions(+), 17 deletions(-)
diff --git a/README.md b/README.md
index ea10ad69..9a93004e 100644
--- a/README.md
+++ b/README.md
@@ -10,6 +10,10 @@
---
+
+## 📚 Documentation
+
+[中文文档](https://xuejmnet.github.io/sharding-core-doc/) | [English Document](https://xuejmnet.github.io/sharding-core-doc/en/)
### 依赖
Release | EF Core | .NET Standard | .NET (Core)
diff --git a/samples/Sample.Migrations/EFCores/ShardingWithDateTime.cs b/samples/Sample.Migrations/EFCores/ShardingWithDateTime.cs
index 12ae4be7..efb2dbb9 100644
--- a/samples/Sample.Migrations/EFCores/ShardingWithDateTime.cs
+++ b/samples/Sample.Migrations/EFCores/ShardingWithDateTime.cs
@@ -1,12 +1,8 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading.Tasks;
-using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using ShardingCore.Core;
-using ShardingCore.Core.EntityMetadatas;
using ShardingCore.VirtualRoutes.Months;
+using System;
namespace Sample.Migrations.EFCores
{
@@ -35,6 +31,5 @@ namespace Sample.Migrations.EFCores
{
return new DateTime(2021, 9, 1);
}
-
}
}
diff --git a/samples/Sample.SqlServer/Startup.cs b/samples/Sample.SqlServer/Startup.cs
index 368dd3b1..70208a59 100644
--- a/samples/Sample.SqlServer/Startup.cs
+++ b/samples/Sample.SqlServer/Startup.cs
@@ -1,20 +1,13 @@
-using System;
-using System.Collections.Concurrent;
-using System.Collections.Generic;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.EntityFrameworkCore;
-using Microsoft.EntityFrameworkCore.Query;
-using Microsoft.EntityFrameworkCore.SqlServer.Query.Internal;
-using Microsoft.EntityFrameworkCore.Storage;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using Sample.SqlServer.DbContexts;
using Sample.SqlServer.Shardings;
using ShardingCore;
-using ShardingCore.EFCores;
-using ShardingCore.Sharding.ReadWriteConfigurations;
+using System;
namespace Sample.SqlServer
{
diff --git a/src/ShardingCore/IShardingConfigOption.cs b/src/ShardingCore/IShardingConfigOption.cs
index b03ea858..a09f42b9 100644
--- a/src/ShardingCore/IShardingConfigOption.cs
+++ b/src/ShardingCore/IShardingConfigOption.cs
@@ -43,6 +43,7 @@ namespace ShardingCore
/// 忽略建表时的错误
///
public bool? IgnoreCreateTableError { get; set; }
+
///
/// 自动追踪实体
///
diff --git a/src/ShardingCore/VirtualRoutes/Years/AbstractSimpleShardingYearKeyDateTimeVirtualTableRoute.cs b/src/ShardingCore/VirtualRoutes/Years/AbstractSimpleShardingYearKeyDateTimeVirtualTableRoute.cs
index b9c3ce78..d9477e07 100644
--- a/src/ShardingCore/VirtualRoutes/Years/AbstractSimpleShardingYearKeyDateTimeVirtualTableRoute.cs
+++ b/src/ShardingCore/VirtualRoutes/Years/AbstractSimpleShardingYearKeyDateTimeVirtualTableRoute.cs
@@ -77,7 +77,7 @@ namespace ShardingCore.VirtualRoutes.Years
///
/// 每年12月20号自动创建表
///
- [JobRun(Name = "定时创建表", Cron = "0 0 5 20 12 ?", RunOnceOnStart = true)]
+ [JobRun(Name = "定时创建表", Cron = "0 0 5 20,21,22,23,24,25,26,27,28,29,30,31 12 ?", RunOnceOnStart = true)]
public virtual void AutoShardingTableCreate()
{
var entityMetadataManager = (IEntityMetadataManager)ShardingContainer.GetService(typeof(IEntityMetadataManager<>).GetGenericType0(EntityMetadata.ShardingDbContextType));
diff --git a/src/ShardingCore/VirtualRoutes/Years/AbstractSimpleShardingYearKeyLongVirtualTableRoute.cs b/src/ShardingCore/VirtualRoutes/Years/AbstractSimpleShardingYearKeyLongVirtualTableRoute.cs
index f6350b5d..81eff6ee 100644
--- a/src/ShardingCore/VirtualRoutes/Years/AbstractSimpleShardingYearKeyLongVirtualTableRoute.cs
+++ b/src/ShardingCore/VirtualRoutes/Years/AbstractSimpleShardingYearKeyLongVirtualTableRoute.cs
@@ -83,7 +83,7 @@ namespace ShardingCore.VirtualRoutes.Years
///
/// 每年12月20号自动创建表
///
- [JobRun(Name = "定时创建表", Cron = "0 0 5 20 12 ?", RunOnceOnStart = true)]
+ [JobRun(Name = "定时创建表", Cron = "0 0 5 20,21,22,23,24,25,26,27,28,29,30,31 12 ?", RunOnceOnStart = true)]
public virtual void AutoShardingTableCreate()
{
var entityMetadataManager = (IEntityMetadataManager)ShardingContainer.GetService(typeof(IEntityMetadataManager<>).GetGenericType0(EntityMetadata.ShardingDbContextType));