What .Net orms or MicroOrms support async operations and PostgreSql

后端 未结 7 1965
太阳男子
太阳男子 2021-01-18 06:25

What ORM\'s support async operations and postgresql ?

I prefer simple MicroOrms like Dapper and OrmLite because they seems to have great performance and they are rea

7条回答
  •  不知归路
    2021-01-18 06:51

    AFAIK the only RDBMS which natively supports asynchronous executions, provider side and server side (not fake ones like wrapping a call with a Task.Run()) on its reader, is SQL Server. You can see this by decompiling the specific ADO.NET data provider. The default implementation of ExecuteReaderAsync calls internally the synchronous one, if not overridden. Please double check by decompiling the specific ADO.NET provider because you may end up in doing database operations in the UI thread when using async and await.

提交回复
热议问题