Provides the SqlQueryAsync<T>
and SqlQueryValueAsync<T>
methods to help you populate arbitrary classes or a list of primitive types from a raw SQL query.
var context = new ChinookContext();
var result = await context.SqlQueryValueAsync<int>("SELECT 1 AS Value");
var result2 = await context.SqlQueryValueAsync<string>("SELECT 'test' AS Value");
Please report any issues, questions and suggestions here