Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Guys

Please assist executing a dapper function below. I am using oracle Below query complains that its missing a FROM, but when from is added, it complains that the query is missing expression.

What I have tried:

C#
var results = connection.Query("select from checkpin(:Username, :Password)", new { Username = input.Username, Password = input.Password }, commandType: CommandType.Text);
Posted
Updated 2-Jun-21 0:30am
Comments
Richard Deeming 2-Jun-21 8:37am    
That query looks like you're storing users' passwords in plain text. Don't do that!

Secure Password Authentication Explained Simply[^]
Salted Password Hashing - Doing it Right[^]

1 solution

You're at least missing the list of columns you're selecting. For example, try using * to get all of the columns
C#
var results = connection.Query("select * from ...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900