schotime / NPoco

Simple microORM that maps the results of a query onto a POCO object. Project based on Schotime's branch of PetaPoco
Apache License 2.0
848 stars 302 forks source link

FirstAsync and FirstOrDefaultAsync not working on MySql and Net. Core #616

Closed redarccoder closed 3 years ago

redarccoder commented 3 years ago

I'm trying to query unique values from my MySql 8 Server, but I keep on getting errors, telling me that I didn't specify the parameters, neither @0 nor object array parameters works.

Calling First, Fetch, FetchAsync works using the same query and parameters.

Error1 error2 error_3

I can get around with FetchAsync then getting my first result (since I know it's unique), but it would be useful to have this available for other functions

schotime commented 3 years ago

Found the issue. Somehow missed passing the args. Oops.

redarccoder commented 3 years ago

Found the issue. Somehow missed passing the args. Oops.

Thank you for this amazing job dude, wish you all the luck in the world.

Greetings