mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-03-07 22:50:58 +08:00
update
12
常见问题.md
12
常见问题.md
@@ -24,7 +24,13 @@ fsql.Aop.CurdAfter += (s, e) =>
|
||||
|
||||
---
|
||||
|
||||
### 3、怎么执行 SQL 返回实体列表?
|
||||
### 3、在 asp.net core 中使用 UnitOfWorkManager 实现多种事务传播
|
||||
|
||||
[https://github.com/dotnetcore/FreeSql/issues/289](https://github.com/dotnetcore/FreeSql/issues/289)
|
||||
|
||||
---
|
||||
|
||||
### 4、怎么执行 SQL 返回实体列表?
|
||||
|
||||
```csharp
|
||||
//直接查询
|
||||
@@ -36,13 +42,13 @@ fsql.Select<T>().WithSql(sql).Page(1, 10).ToList();
|
||||
|
||||
---
|
||||
|
||||
### 4、错误:【主库】状态不可用,等待后台检查程序恢复方可使用。xxx
|
||||
### 5、错误:【主库】状态不可用,等待后台检查程序恢复方可使用。xxx
|
||||
|
||||
一般是数据库连接失败,才会出现,请检查程序与数据库之间的网络。具体按 xxx 给出的提示进行排查。
|
||||
|
||||
---
|
||||
|
||||
### 5、错误:ObjectPool.Get 获取超时(10秒)。
|
||||
### 6、错误:ObjectPool.Get 获取超时(10秒)。
|
||||
|
||||
原因一:UnitOfWork 使用未释放,请保证程序内使用 UnitOfWork 的地方会执行 Dispose
|
||||
|
||||
|
||||
Reference in New Issue
Block a user