发布6.7.0.0将efcore版本与.net版本绑定
This commit is contained in:
parent
f116bf79b9
commit
16046d357b
14
README-zh.md
14
README-zh.md
|
@ -28,12 +28,26 @@
|
|||
[中文文档Gitee](https://xuejm.gitee.io/sharding-core-doc/) | [English Document Gitee](https://xuejm.gitee.io/sharding-core-doc/en/)
|
||||
## 依赖
|
||||
|
||||
|
||||
### ShardingCore 6.7.0.0之前版本
|
||||
版本号:a.b.c.d其中,`a`表示efcore版本号
|
||||
|
||||
Release | EF Core | .NET | .NET (Core)
|
||||
--- | --- | --- | ---
|
||||
[6.x.x.x](https://www.nuget.org/packages/ShardingCore) | 6.0.0 | net 6.0 | 6.0+
|
||||
[5.x.x.x](https://www.nuget.org/packages/ShardingCore) | 5.0.10 | Standard 2.1 | 5.0+
|
||||
[3.x.x.x](https://www.nuget.org/packages/ShardingCore) | 3.1.18 | Standard 2.0 | 2.0+
|
||||
[2.x.x.x](https://www.nuget.org/packages/ShardingCore) | 2.2.6 | Standard 2.0 | 2.0+
|
||||
### ShardingCore 6.7.0.0之后
|
||||
|
||||
版本号:a.b.c.d其中已无相关efcore选择,使用条件编译绑定.net平台,6.7.0.0之后如果您是netcoreapp2那么直接使用efcore2,如果是netcoreapp3那么直接使用efcore3如果是net5就直接用efcore6依次类推
|
||||
|
||||
Release | .NET (Core)
|
||||
--- | ---
|
||||
[6.x.x.x](https://www.nuget.org/packages/ShardingCore) | 6.0
|
||||
[5.x.x.x](https://www.nuget.org/packages/ShardingCore) | 5.0
|
||||
[3.x.x.x](https://www.nuget.org/packages/ShardingCore) | netcoreapp3
|
||||
[2.x.x.x](https://www.nuget.org/packages/ShardingCore) | netcoreapp2
|
||||
|
||||
|
||||
## 快速开始
|
||||
|
|
11
README.md
11
README.md
|
@ -29,13 +29,24 @@ high performance lightweight solution for efcore sharding table and sharding dat
|
|||
[中文文档Gitee](https://xuejm.gitee.io/sharding-core-doc/) | [English Document Gitee](https://xuejm.gitee.io/sharding-core-doc/en/)
|
||||
## Dependency
|
||||
|
||||
### Before ShardingCore 6.7.0.0
|
||||
|
||||
Release | EF Core | .NET | .NET (Core)
|
||||
--- | --- | --- | ---
|
||||
[6.x.x.x](https://www.nuget.org/packages/ShardingCore) | 6.0.0 | net 6.0 | 6.0+
|
||||
[5.x.x.x](https://www.nuget.org/packages/ShardingCore) | 5.0.10 | Standard 2.1 | 5.0+
|
||||
[3.x.x.x](https://www.nuget.org/packages/ShardingCore) | 3.1.18 | Standard 2.0 | 2.0+
|
||||
[2.x.x.x](https://www.nuget.org/packages/ShardingCore) | 2.2.6 | Standard 2.0 | 2.0+
|
||||
### After ShardingCore 6.7.0.0
|
||||
|
||||
Use Condition Compile With NetFramework not
|
||||
|
||||
Release | .NET (Core)
|
||||
--- | ---
|
||||
[6.x.x.x](https://www.nuget.org/packages/ShardingCore) | 6.0
|
||||
[5.x.x.x](https://www.nuget.org/packages/ShardingCore) | 5.0
|
||||
[3.x.x.x](https://www.nuget.org/packages/ShardingCore) | netcoreapp3
|
||||
[2.x.x.x](https://www.nuget.org/packages/ShardingCore) | netcoreapp2
|
||||
|
||||
## Quick start
|
||||
5 steps implement sharding by month and support auto create table by month
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
:start
|
||||
::定义版本
|
||||
set EFCORE2=2.6.0.36
|
||||
set EFCORE3=3.6.0.36
|
||||
set EFCORE5=5.6.0.36
|
||||
set EFCORE6=6.6.0.36
|
||||
set SHARDINGCORE=6.7.0.0
|
||||
|
||||
::删除所有bin与obj下的文件
|
||||
@echo off
|
||||
|
|
|
@ -13,7 +13,6 @@ namespace Sample.MySql
|
|||
{
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
var length = "B-SF-C30-190(S4)-D100P6KS60RCM-Ⅳ(2)Q-Ⅴ(3)T-Ⅳ(4)-GB/T 14902".Length;
|
||||
CreateHostBuilder(args).Build().Run();
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>netcoreapp2;netcoreapp3;net5;net6</TargetFrameworks>
|
||||
<Version>$(EFCORE)</Version>
|
||||
<Version>$(SHARDINGCORE)</Version>
|
||||
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
|
||||
<DefineConstants>TRACE;DEBUG;</DefineConstants>
|
||||
<LangVersion>latest</LangVersion>
|
||||
|
@ -33,6 +33,9 @@
|
|||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||
<LangVersion>latest</LangVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
|
||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|netcoreapp2|AnyCPU'">
|
||||
<NoWarn>1701;1702;1591;</NoWarn>
|
||||
</PropertyGroup>
|
||||
|
|
Loading…
Reference in New Issue