Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What .Net orms or MicroOrms support async operations and PostgreSql

Tags:

dapper

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 really simple, but they do not support async operations as far as I can tell.

Maybe I am wrong, but isn't important to make all IO bound operations async to get the full benefits of say an async web service that needs to scale?

So what are the options regarding an MicroOrm with support for both async operations and Postgresql? I have just read about a new Orm called Insight.Data, but I am unsure whether it properly supports PostgreSql.

like image 431
Stig Schmidt Nielsson Avatar asked Sep 09 '12 21:09

Stig Schmidt Nielsson


1 Answers

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.

like image 187
bkaid Avatar answered Oct 09 '22 20:10

bkaid