修复guid排序发布x.3.1.37
This commit is contained in:
parent
efa9476651
commit
fd3f6682fa
|
@ -1,9 +1,9 @@
|
|||
:start
|
||||
::定义版本
|
||||
set EFCORE2=2.3.1.35
|
||||
set EFCORE3=3.3.1.35
|
||||
set EFCORE5=5.3.1.35
|
||||
set EFCORE6=6.3.1.35
|
||||
set EFCORE2=2.3.1.37
|
||||
set EFCORE3=3.3.1.37
|
||||
set EFCORE5=5.3.1.37
|
||||
set EFCORE6=6.3.1.37
|
||||
|
||||
::删除所有bin与obj下的文件
|
||||
@echo off
|
||||
|
|
|
@ -9,13 +9,13 @@ using ShardingCore.Sharding.ShardingComparision.Abstractions;
|
|||
|
||||
namespace ShardingCore.Sharding.ShardingComparision
|
||||
{
|
||||
/*
|
||||
* @Author: xjm
|
||||
* @Description:
|
||||
* @Date: Sunday, 31 October 2021 15:39:46
|
||||
* @Email: 326308290@qq.com
|
||||
*/
|
||||
public class CSharpLanguageShardingComparer<TShardingDbContext>:IShardingComparer<TShardingDbContext> where TShardingDbContext:DbContext,IShardingDbContext
|
||||
/*
|
||||
* @Author: xjm
|
||||
* @Description:
|
||||
* @Date: Sunday, 31 October 2021 15:39:46
|
||||
* @Email: 326308290@qq.com
|
||||
*/
|
||||
public class CSharpLanguageShardingComparer<TShardingDbContext> : IShardingComparer<TShardingDbContext> where TShardingDbContext : DbContext, IShardingDbContext
|
||||
{
|
||||
private readonly ConcurrentDictionary<Type, object> _comparers = new ConcurrentDictionary<Type, object>();
|
||||
public virtual int Compare(IComparable x, IComparable y, bool asc)
|
||||
|
@ -27,7 +27,7 @@ namespace ShardingCore.Sharding.ShardingComparision
|
|||
return x.SafeCompareToWith(y, asc);
|
||||
}
|
||||
|
||||
public object CreateComparer(Type comparerType)
|
||||
public object CreateComparer(Type comparerType)
|
||||
{
|
||||
var comparer = _comparers.GetOrAdd(comparerType,
|
||||
key => Activator.CreateInstance(typeof(InMemoryShardingComparer<>).GetGenericType0(comparerType),
|
||||
|
|
Loading…
Reference in New Issue