DEV Community

Discussion on: ORM-less Data Access in .Net Core

Collapse
 
ruidfigueiredo profile image
Rui Figueiredo

Thanks. But did you know that in .Net Core all the command methods have an Async conterpart (ExecuteNonQueryAsync, ExecuteReaderAsync, ExecuteScalarAsync)?

Collapse
 
pim profile image
Pim

Yes... that is exactly what I mean. I feel that given it's availability your article should be demonstrating the async versions, and noting that non-async is available if you absolutely need it.

Thread Thread
 
ruidfigueiredo profile image
Rui Figueiredo

I usually try to include the least amount of concepts required to explain/demonstrate an idea, that's why Async isn't there.

Thread Thread
 
pim profile image
Pim

You're right. async, await and Task<> really add a ton of code...