Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Converting Query<MyObject> to QueryFirstOrDefault<MyObject> breaks query #140

Open
dooferorg opened this issue Dec 8, 2024 · 0 comments

Comments

@dooferorg
Copy link

At the suggestion of the Dapper.AOT system I converted SELECT query type calls from Query("SELECT * FROM my_object_table WHERE id=@foo") style calls to the QueryFirstOrDefault() syntax

What happens is for the same SQL, the query returns an empty object so it breaks things.

**Where are you seeing this?

Dapper 2.1.35
Dapper.AOT 2.0.78

MariaDB 10.11.6

To Reproduce

Try a query with Dapper before and after converting to the QueryFirstOrDefault() style

Expected behavior

I expected my queries to work as before

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant