添加测试代码
This commit is contained in:
parent
bfa7904848
commit
807dd4fbb1
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
// }
|
||||
}
|
Loading…
Reference in New Issue