File tree 5 files changed +30
-6
lines changed
5 files changed +30
-6
lines changed Original file line number Diff line number Diff line change 28
28
[ 中文文档Gitee] ( https://xuejm.gitee.io/sharding-core-doc/ ) | [ English Document Gitee] ( https://xuejm.gitee.io/sharding-core-doc/en/ )
29
29
## 依赖
30
30
31
+
32
+ ### ShardingCore 6.7.0.0之前版本
33
+ 版本号: a .b.c.d其中,` a ` 表示efcore版本号
34
+
31
35
Release | EF Core | .NET | .NET (Core)
32
36
--- | --- | --- | ---
33
37
[ 6.x.x.x] ( https://www.nuget.org/packages/ShardingCore ) | 6.0.0 | net 6.0 | 6.0+
34
38
[ 5.x.x.x] ( https://www.nuget.org/packages/ShardingCore ) | 5.0.10 | Standard 2.1 | 5.0+
35
39
[ 3.x.x.x] ( https://www.nuget.org/packages/ShardingCore ) | 3.1.18 | Standard 2.0 | 2.0+
36
40
[ 2.x.x.x] ( https://www.nuget.org/packages/ShardingCore ) | 2.2.6 | Standard 2.0 | 2.0+
41
+ ### ShardingCore 6.7.0.0之后
42
+
43
+ 版本号: a .b.c.d其中已无相关efcore选择,使用条件编译绑定.net平台,6.7.0.0之后如果您是netcoreapp2那么直接使用efcore2,如果是netcoreapp3那么直接使用efcore3如果是net5就直接用efcore6依次类推
44
+
45
+ Release | .NET (Core)
46
+ --- | ---
47
+ [ 6.x.x.x] ( https://www.nuget.org/packages/ShardingCore ) | 6.0
48
+ [ 5.x.x.x] ( https://www.nuget.org/packages/ShardingCore ) | 5.0
49
+ [ 3.x.x.x] ( https://www.nuget.org/packages/ShardingCore ) | netcoreapp3
50
+ [ 2.x.x.x] ( https://www.nuget.org/packages/ShardingCore ) | netcoreapp2
37
51
38
52
39
53
## 快速开始
Original file line number Diff line number Diff line change @@ -29,13 +29,24 @@ high performance lightweight solution for efcore sharding table and sharding dat
29
29
[ 中文文档Gitee] ( https://xuejm.gitee.io/sharding-core-doc/ ) | [ English Document Gitee] ( https://xuejm.gitee.io/sharding-core-doc/en/ )
30
30
## Dependency
31
31
32
+ ### Before ShardingCore 6.7.0.0
33
+
32
34
Release | EF Core | .NET | .NET (Core)
33
35
--- | --- | --- | ---
34
36
[ 6.x.x.x] ( https://www.nuget.org/packages/ShardingCore ) | 6.0.0 | net 6.0 | 6.0+
35
37
[ 5.x.x.x] ( https://www.nuget.org/packages/ShardingCore ) | 5.0.10 | Standard 2.1 | 5.0+
36
38
[ 3.x.x.x] ( https://www.nuget.org/packages/ShardingCore ) | 3.1.18 | Standard 2.0 | 2.0+
37
39
[ 2.x.x.x] ( https://www.nuget.org/packages/ShardingCore ) | 2.2.6 | Standard 2.0 | 2.0+
40
+ ### After ShardingCore 6.7.0.0
41
+
42
+ Use Condition Compile With NetFramework not
38
43
44
+ Release | .NET (Core)
45
+ --- | ---
46
+ [ 6.x.x.x] ( https://www.nuget.org/packages/ShardingCore ) | 6.0
47
+ [ 5.x.x.x] ( https://www.nuget.org/packages/ShardingCore ) | 5.0
48
+ [ 3.x.x.x] ( https://www.nuget.org/packages/ShardingCore ) | netcoreapp3
49
+ [ 2.x.x.x] ( https://www.nuget.org/packages/ShardingCore ) | netcoreapp2
39
50
40
51
## Quick start
41
52
5 steps implement sharding by month and support auto create table by month
Original file line number Diff line number Diff line change 1
1
:start
2
2
:: 定义版本
3
- set EFCORE2 = 2.6.0.36
4
- set EFCORE3 = 3.6.0.36
5
- set EFCORE5 = 5.6.0.36
6
- set EFCORE6 = 6.6.0.36
3
+ set SHARDINGCORE = 6.7.0.0
7
4
8
5
:: 删除所有bin与obj下的文件
9
6
@ echo off
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ public class Program
13
13
{
14
14
public static void Main ( string [ ] args )
15
15
{
16
- var length = "B-SF-C30-190(S4)-D100P6KS60RCM-Ⅳ(2)Q-Ⅴ(3)T-Ⅳ(4)-GB/T 14902" . Length ;
17
16
CreateHostBuilder ( args ) . Build ( ) . Run ( ) ;
18
17
}
19
18
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
<PropertyGroup >
3
3
<TargetFrameworks >netcoreapp2;netcoreapp3;net5;net6</TargetFrameworks >
4
- <Version >$(EFCORE )</Version >
4
+ <Version >$(SHARDINGCORE )</Version >
5
5
<GenerateAssemblyInfo >true</GenerateAssemblyInfo >
6
6
<DefineConstants >TRACE;DEBUG;</DefineConstants >
7
7
<LangVersion >latest</LangVersion >
33
33
<PropertyGroup Condition =" '$(Configuration)|$(Platform)'=='Debug|AnyCPU'" >
34
34
<LangVersion >latest</LangVersion >
35
35
</PropertyGroup >
36
+ <PropertyGroup Condition =" '$(Configuration)|$(Platform)'=='Release|AnyCPU'" >
37
+ <GeneratePackageOnBuild >true</GeneratePackageOnBuild >
38
+ </PropertyGroup >
36
39
<PropertyGroup Condition =" '$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|netcoreapp2|AnyCPU'" >
37
40
<NoWarn >1701;1702;1591;</NoWarn >
38
41
</PropertyGroup >
You can’t perform that action at this time.
0 commit comments