December 2019
Intermediate to advanced
598 pages
12h 21m
English
Let's implement the GetQuestionsBySearch method, which is similar to the GetQuestions method, but this time, the method and stored procedure have a parameter. Let's carry out the following steps:
public IEnumerable<QuestionGetManyResponse> GetQuestionsBySearch(string search){ using (var connection = new SqlConnection(_connectionString)) { connection.Open(); // TODO - execute Question_GetMany_BySearch stored procedure }}
public IEnumerable<QuestionGetManyResponse> GetQuestionsBySearch(string search) ...
Read now
Unlock full access