Skip to content

Commit

Permalink
Update README.zh-CN.md (#554)
Browse files Browse the repository at this point in the history
update Dapper demo
  • Loading branch information
shaofing authored Dec 27, 2023
1 parent 4baaf46 commit 8bf92ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -423,11 +423,12 @@ using (var connection = GetConnection(connectionString))
var rows = connection.Query(
new CommandDefinition(
@"select 'MiniExcel' as Column1,1 as Column2 union all select 'Github',2"
, CommandFlags.NoCache)
, flags: CommandFlags.NoCache)
)
MiniExcel.SaveAs(path, rows);
}
```
上面的方法已知的问题:不能使用异步QueryAsync的方法,会报连接已经关闭的异常

以下写法会将数据全载入内存

Expand Down

0 comments on commit 8bf92ac

Please sign in to comment.