group by?

This commit is contained in:
xuejiaming 2024-10-12 10:52:08 +08:00
parent 3a7bfcb422
commit e599ef2cf0
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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 =>
{