Created
April 19, 2020 20:48
-
-
Save ayende/55156a8f7b9d5acd4b798e1933494bdf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static async Task<Article[]> SearchByAuthor(string author) | |
{ | |
var articles = await DbHelper.ExecuteQueryAsync<Article>(CollectionId, | |
new QueryDefinition("SELECT * FROM articles AS a WHERE lower(a.author) = @author") | |
.WithParameter("@author", author.ToLower()) | |
, author); | |
return articles; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment