Environment: VS 2017 Entity Framework 6.0
class Program
{
static void Main(string[] args)
{
using (var ctx = new pubsEntities())
{
//this will throw an exception
var employees = ctx.Database.SqlQuery<string>(@"
select * from employee;
").ToList();
}
}
}
Receiving this error:
{"The data reader has more than one field. Multiple fields are not valid for EDM primitive or enumeration types."}
List<string>not a single string