111
This commit is contained in:
parent
26d559bba7
commit
04350e78d4
|
@ -1,8 +1,8 @@
|
|||
:start
|
||||
::定义版本
|
||||
set EFCORE2=2.1.0.6
|
||||
set EFCORE3=3.1.0.6
|
||||
set EFCORE5=5.1.0.6
|
||||
set EFCORE2=2.1.0.7
|
||||
set EFCORE3=3.1.0.7
|
||||
set EFCORE5=5.1.0.7
|
||||
|
||||
::删除所有bin与obj下的文件
|
||||
@echo off
|
||||
|
|
|
@ -29,7 +29,7 @@ namespace Sample.MySql.Controllers
|
|||
var result = await _virtualDbContext.Set<SysTest>().AnyAsync();
|
||||
var result1 = await _virtualDbContext.Set<SysUserMod>().Where(o => o.Id == "2" || o.Id == "3").ToShardingListAsync();
|
||||
var shardingCountAsync = await _virtualDbContext.Set<SysUserMod>().ShardingCountAsync();
|
||||
var shardingCountAsyn2c = await _virtualDbContext.Set<SysUserLogByMonth>().ShardingCountAsync();
|
||||
var shardingCountAsyn2c = _virtualDbContext.Set<SysUserLogByMonth>().ShardingCount();
|
||||
|
||||
return Ok(result1);
|
||||
}
|
||||
|
|
|
@ -42,7 +42,7 @@ namespace ShardingCore.Core.VirtualRoutes.TableRoutes
|
|||
if (physicTables.IsEmpty())
|
||||
{
|
||||
var routeConfig = ShardingKeyUtil.Parse(typeof(T));
|
||||
throw new ShardingKeyRouteNotMatchException($"{routeConfig.ShardingEntityType} -> [{routeConfig.ShardingField}] ->【{shardingKey}】");
|
||||
throw new ShardingKeyRouteNotMatchException($"{routeConfig.ShardingEntityType} -> [{routeConfig.ShardingField}] ->【{shardingKey}】 all tails ->[{string.Join(",", allPhysicTables.Select(o=>o.FullName))}]");
|
||||
}
|
||||
|
||||
if (physicTables.Count > 1)
|
||||
|
|
Loading…
Reference in New Issue