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
Insight.Database has full async support and works with any .NET SqlProvider. I haven't specifically tested it on postgres, but if you post an issue on the github site, I'd gladly incorporate postgres into the test suite.
https://github.com/jonwagner/Insight.Database
EDIT: Insight v3.0 and later supports most databases.
AsyncPoco, a fork of PetaPoco, supports asynchronous operations (exclusively) and PostgeSQL.
Dapper has had async support for some time, but only when targeting .NET 4.5. I could probably back-port to 4.0 using the BCL async targeting pack, but to date: I have not done so.
If you are using .NET 4.5, I wrote a fork of Dapper that adds async methods that internally call ExecuteReaderAsync. It is also available on NuGet. I haven't tested it with Postgresql but if Dapper works with it then my fork should as well.
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.
Just stumbled upon this new ORM called Insight.Database and they claim to support async queries:
List<Beer> beerMenu = await Database1.AsyncQuery<Beer>("FindBeer", new { Name = "Sly Fox" });
I did not try it yet...