添加readme的文档

This commit is contained in:
xuejiaming 2021-11-03 08:48:24 +08:00
parent d320f93041
commit 39dbdac663
6 changed files with 10 additions and 17 deletions

View File

@ -10,6 +10,10 @@
</div>
---
## 📚 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)

View File

@ -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);
}
}
}

View File

@ -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
{

View File

@ -43,6 +43,7 @@ namespace ShardingCore
/// 忽略建表时的错误
/// </summary>
public bool? IgnoreCreateTableError { get; set; }
/// <summary>
/// 自动追踪实体
/// </summary>

View File

@ -77,7 +77,7 @@ namespace ShardingCore.VirtualRoutes.Years
/// <summary>
/// 每年12月20号自动创建表
/// </summary>
[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));

View File

@ -83,7 +83,7 @@ namespace ShardingCore.VirtualRoutes.Years
/// <summary>
/// 每年12月20号自动创建表
/// </summary>
[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));