Closed jwosty closed 11 months ago
While working on this I noticed how QueryContext marshalling Task to Async to Task again - what is the reason for this? I see comments saying "Must wrap in async to prevent EndExecuteNonQuery
ex in NET6_0_OR_GREATER" - what exception is this referring to, and how does it prevent keeping it all in task-land?
While working on this I noticed how QueryContext marshalling Task to Async to Task again - what is the reason for this? I see comments saying "Must wrap in async to prevent
EndExecuteNonQuery
ex in NET6_0_OR_GREATER" - what exception is this referring to, and how does it prevent keeping it all in task-land?Example:
I'm a little hazy on that, but here is some background:
This project started before the task
CE was introduced.
I planned to swap to the native task
at some point, but I also didn't want to inadvertently break anything, so decided that put it off a while longer.
I believe that error affected a Xamarin app I was writing, but I don't recall the details. It's basically a "here be dragons" warning.
Do you want to take a stab at upgrading it to the new task
?
@JordanMarr great, just converted it over. Also took the liberty to async-ify some more bits (each part is in separate commits so if you don't like one of them it should be easy to partially revert). Feel free to do your own manual tests to ensure I didn't break anyone else's scenarios.
These additions are really nice! Thank you for the hard work. I will test and then probably release a beta version first so that I can run it against a few of my projects.
Should these be converted to tasks as well?
EDIT: I migrated them to tasks.
Query v2.0.3-beta is posted.
Perhaps we need to also add netstandard2.1 as a build target so that the BeginTransactionAsync
is available?
Related to #19