2301 11/28/2015 7:44:10 AM


:
int employeeID = 1000;
var sqlQuery = String.Format(@"SELECT TOP 1 EmployeeName FROM Employee
            WHERE EmployeeID = '{0}'    ", employeeID);
var result = dbContext.Database.SqlQuery<string>(sqlQuery);