I have some code that calls GetSQLUser(defined in the code below)... If I put a breakpoint on var result, the result is not as I expected (a SqlUserInfo object... would be nice).
public class Whatever
{
public void GetSQLUser()
{
var result = this.context.Database.SqlQuery<SQLUserInfo>("SELECT SYSTEM_USER AS UserID");
}
}
public class SQLUserInfo
{
string UserID { get; set; }
}
What am I doing wrong?
