添加测试代码

This commit is contained in:
xuejiaming 2022-06-08 21:41:52 +08:00
parent bfa7904848
commit 807dd4fbb1
2 changed files with 24 additions and 0 deletions

View File

@ -389,6 +389,19 @@ namespace Sample.SqlServer.Controllers
var sysUserSalaries = await _defaultTableDbContext.Set<SysUserSalary>().Where(o=>o.DateOfMonth==202101).ToListAsync();
return Ok();
}
[HttpGet]
public async Task<IActionResult> Get7()
{
var resultx112331tt2 = await _defaultTableDbContext.Set<SysTest>().Where(o => o.Id == "2")
.Select(o => new
{
Idd=o.Id,
Tests=_defaultTableDbContext.Set<SysTest>().Where(o => o.Id == "2").ToList()
})
.FirstOrDefaultAsync();
return Ok();
}
}
}

View File

@ -0,0 +1,11 @@
using System.Linq;
using ShardingCore.Sharding.MergeEngines.Common.Abstractions;
namespace ShardingCore.Core.VirtualRoutes.Abstracttions
{
// public interface IShardingRoute
// {
// ISqlRouteUnit RouteTo(IQueryable queryable);
// }
}