Skip to content

Commit 8bf92ac

Browse files
authored
Update README.zh-CN.md (#554)
update Dapper demo
1 parent 4baaf46 commit 8bf92ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.zh-CN.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,11 +423,12 @@ using (var connection = GetConnection(connectionString))
423423
var rows = connection.Query(
424424
new CommandDefinition(
425425
@"select 'MiniExcel' as Column1,1 as Column2 union all select 'Github',2"
426-
, CommandFlags.NoCache)
426+
, flags: CommandFlags.NoCache)
427427
)
428428
MiniExcel.SaveAs(path, rows);
429429
}
430430
```
431+
上面的方法已知的问题:不能使用异步QueryAsync的方法,会报连接已经关闭的异常
431432

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

0 commit comments

Comments
 (0)