错误日志如下,请问如何解决?
An exception occurred while iterating over the results of a query for context type 'CnblogsDbContext'.
System.InvalidOperationException: Invalid operation. The connection is closed.
at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__208_0(Task`1 result)
漏写 await
引起的
tolist 一下试试