December 2019
Intermediate to advanced
598 pages
12h 21m
English
Let's implement the GetQuestions method first:
using System.Data.SqlClient;using Dapper;
public IEnumerable<QuestionGetManyResponse> GetQuestions(){ using (var connection = new SqlConnection(_connectionString)) { }}
Notice that we've used a using block to declare the database connection.
So, the using statement ...
Read now
Unlock full access