We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Lets say I have a simple table
public class Product { public int Id { get; set;} public string Name { get; set; } }
and want to select products with property Name equals to some string condition, so
Connection.Query<Product>("SELECT * FROM Product WHERE Name = '?'", "ASDF1234")
empty query is returned, I have same problem with ... LIKE '%?%'. When I go through LINQ, everything is fine
Connection.Table<Product>().Where(x => x.Name == "ASDF1234")
but I want to select specific columns (SELECT col1 ...) only so I have to write raw SQL.
It looks like there are some problems with strings in conditions, or am I doing something wrong?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Lets say I have a simple table
and want to select products with property Name equals to some string condition, so
Connection.Query<Product>("SELECT * FROM Product WHERE Name = '?'", "ASDF1234")
empty query is returned, I have same problem with ... LIKE '%?%'.
When I go through LINQ, everything is fine
Connection.Table<Product>().Where(x => x.Name == "ASDF1234")
but I want to select specific columns (SELECT col1 ...) only so I have to write raw SQL.
It looks like there are some problems with strings in conditions, or am I doing something wrong?
The text was updated successfully, but these errors were encountered: