Comments (5)
DBContext的配置如下:
from adnc.
你这是用了异步方法没有加await。
同一时刻,一个dbcontext只能执行一个异步方法。ef设计如此。
from adnc.
具体是下面的这一行,需要加上await, 对么?
return ExecuteAsync<TSource, Task<TSource>>(QueryableMethods.FirstOrDefaultWithoutPredicate, source, cancellationToken);
from adnc.
另外,能否请教一下,基于框架,如何可以启用 mysql的数据库链接池
?
(项目里用到的大概是2020
年左右的版本)
from adnc.
不要改基础方法,基础方法无问题的。你要修改你出问题的地方。关于连接池,如果是mysql连接池在连接串中配置就行。如果是dbcontext连接池,除非性能要求极致,否则配置意义不大,你可以自己查看相关资料如何配置。
from adnc.
Related Issues (20)
- 内网IP错误 HOT 2
- 可否写一个Windows部署的教程? HOT 2
- 按快速跑起来的教程运行起来程序,登录报错
- 为什么没有使用grpc HOT 1
- 为何不集成SQLServer HOT 1
- 哪位有空能否帮助把这三个sql文件里涉及的表名,列名转换成小写。 HOT 1
- 寻求有缘人帮忙做一个简洁、漂亮的登录页面,目前这个太low了。 HOT 14
- FluentValidation 验证Dto后,错误提示不显示 WithMessage中自定义的信息 HOT 1
- 有无兴趣对接阿里开源的Sentinel组件? HOT 2
- DefaultBinarySerializer HOT 2
- 方便问一下项目模板什么时候能上线吗? HOT 1
- 按照readme启动,无法登录,更改webapi端口为5002后正常 HOT 4
- 按照官方文档启动后,gateway。启动后会链接到 10.0.8.15:8500,我还需要部署什么吗? HOT 1
- 快速入门文档中下载sql脚本错误的URL未更新 HOT 1
- call InitAsync methos before (Parameter 'adnc:user:bloomfilter:accouts')
- mac 系统的 visual studio 2022 打开工程的时候报错,怎么解决 HOT 1
- 注册中心和四个微服务启动后突然终止, 报这个异常,这是什么原因造成的 HOT 4
- 演示地址挂了,访问不到 HOT 1
- nlog-mongodb.config配置无效 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adnc.