Skip to content

Commit 16046d3

Browse files
committed
发布6.7.0.0将efcore版本与.net版本绑定
1 parent f116bf7 commit 16046d3

File tree

5 files changed

+30
-6
lines changed

5 files changed

+30
-6
lines changed

README-zh.md

+14
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,26 @@
2828
[中文文档Gitee](https://xuejm.gitee.io/sharding-core-doc/) | [English Document Gitee](https://xuejm.gitee.io/sharding-core-doc/en/)
2929
## 依赖
3030

31+
32+
### ShardingCore 6.7.0.0之前版本
33+
版本号:a.b.c.d其中,`a`表示efcore版本号
34+
3135
Release | EF Core | .NET | .NET (Core)
3236
--- | --- | --- | ---
3337
[6.x.x.x](https://www.nuget.org/packages/ShardingCore) | 6.0.0 | net 6.0 | 6.0+
3438
[5.x.x.x](https://www.nuget.org/packages/ShardingCore) | 5.0.10 | Standard 2.1 | 5.0+
3539
[3.x.x.x](https://www.nuget.org/packages/ShardingCore) | 3.1.18 | Standard 2.0 | 2.0+
3640
[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
3751

3852

3953
## 快速开始

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,24 @@ high performance lightweight solution for efcore sharding table and sharding dat
2929
[中文文档Gitee](https://xuejm.gitee.io/sharding-core-doc/) | [English Document Gitee](https://xuejm.gitee.io/sharding-core-doc/en/)
3030
## Dependency
3131

32+
### Before ShardingCore 6.7.0.0
33+
3234
Release | EF Core | .NET | .NET (Core)
3335
--- | --- | --- | ---
3436
[6.x.x.x](https://www.nuget.org/packages/ShardingCore) | 6.0.0 | net 6.0 | 6.0+
3537
[5.x.x.x](https://www.nuget.org/packages/ShardingCore) | 5.0.10 | Standard 2.1 | 5.0+
3638
[3.x.x.x](https://www.nuget.org/packages/ShardingCore) | 3.1.18 | Standard 2.0 | 2.0+
3739
[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
3843

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
3950

4051
## Quick start
4152
5 steps implement sharding by month and support auto create table by month

nuget-publish.bat

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
:start
22
::定义版本
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
74

85
::删除所有bin与obj下的文件
96
@echo off

samples/Sample.MySql/Program.cs

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ public class Program
1313
{
1414
public static void Main(string[] args)
1515
{
16-
var length = "B-SF-C30-190(S4)-D100P6KS60RCM-Ⅳ(2)Q-Ⅴ(3)T-Ⅳ(4)-GB/T 14902".Length;
1716
CreateHostBuilder(args).Build().Run();
1817
}
1918

src/ShardingCore/ShardingCore.csproj

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<TargetFrameworks>netcoreapp2;netcoreapp3;net5;net6</TargetFrameworks>
4-
<Version>$(EFCORE)</Version>
4+
<Version>$(SHARDINGCORE)</Version>
55
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
66
<DefineConstants>TRACE;DEBUG;</DefineConstants>
77
<LangVersion>latest</LangVersion>
@@ -33,6 +33,9 @@
3333
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
3434
<LangVersion>latest</LangVersion>
3535
</PropertyGroup>
36+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
37+
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
38+
</PropertyGroup>
3639
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|netcoreapp2|AnyCPU'">
3740
<NoWarn>1701;1702;1591;</NoWarn>
3841
</PropertyGroup>

0 commit comments

Comments
 (0)