I have the following:
var sql = @\"Select case when Test.TestTypeId = 1 then Exam.Name when Test.TestTypeId = 2 then To
If you're using Entity Framework 6 you just need to specify
using System.Data.Entity;
at the top of your file.
ToListAsync is an extension method on IQueryable declared in System.Data.Entity.QueryableExtensions
ToListAsync
IQueryable
System.Data.Entity.QueryableExtensions