Skip to content

Commit

Permalink
[#266] 7.x.1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
xuejmnet committed Apr 20, 2024
1 parent b730c4e commit 1e715ff
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
12 changes: 6 additions & 6 deletions nuget-publish.bat
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
:start
::定义版本
set EFCORE8=7.8.1.20
set EFCORE7=7.7.1.20
set EFCORE6=7.6.1.20
set EFCORE5=7.5.1.20
set EFCORE3=7.3.1.20
set EFCORE2=7.2.1.20
set EFCORE8=7.8.1.21
set EFCORE7=7.7.1.21
set EFCORE6=7.6.1.21
set EFCORE5=7.5.1.21
set EFCORE3=7.3.1.21
set EFCORE2=7.2.1.21

::删除所有bin与obj下的文件
@echo off
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ protected override List<string> DoRouteWithPredicate(List<string> allDataSourceN

public virtual object GetCompareValueByShardingKey(object shardingKey, string shardingPropertyName)
{
if (EntityMetadata.IsMainShardingDataSourceKey(shardingPropertyName))
{
return ShardingKeyToDataSourceName(shardingKey);
}
return shardingKey;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,13 @@ protected override List<TableRouteUnit> DoRouteWithPredicate(DataSourceRouteResu
return sqlRouteUnits;
}


public virtual object GetCompareValueByShardingKey(object shardingKey, string shardingPropertyName)
{
if (EntityMetadata.IsMainShardingTableKey(shardingPropertyName))
{
return ShardingKeyToTail(shardingKey);
}
return shardingKey;
}

Expand Down

0 comments on commit 1e715ff

Please sign in to comment.