group by?
This commit is contained in:
parent
3a7bfcb422
commit
e599ef2cf0
|
@ -639,7 +639,7 @@ namespace Sample.MySql.Controllers
|
|||
var listAsync = await _defaultTableDbContext.Database.SqlQuery<MyClass>($"select * from groupentity_00").ToListAsync();
|
||||
var list1 = _defaultTableDbContext.Set<GroupEntity>()
|
||||
.UseConnectionMode(1,ConnectionModeEnum.CONNECTION_STRICTLY)
|
||||
.Where(o=>o.City=="郑州市")
|
||||
// .Where(o=>o.City=="郑州市")
|
||||
.GroupBy(o=>new
|
||||
{
|
||||
o.City,
|
||||
|
|
|
@ -131,7 +131,7 @@ namespace Sample.MySql
|
|||
// o.UseEntityFrameworkCoreProxies = true;
|
||||
o.ThrowIfQueryRouteNotMatch = false;
|
||||
o.AutoUseWriteConnectionStringAfterWriteDb = true;
|
||||
o.MaxQueryConnectionsLimit = 2;
|
||||
o.MaxQueryConnectionsLimit = 10;
|
||||
o.UseExecutorDbContextConfigure(op =>
|
||||
{
|
||||
|
||||
|
|
Loading…
Reference in New Issue