How the data is retrieved from database using linq in entity framework
The following question is asked in an interview and i don't know the answer.How the data is retrieved from database using linq in entity framework
Any help is appreciated
public class Employee
{
public int EmpId {get; set;}
public string FirstName {get; set;}
public string LastName {get; set;}
public double Salary {get; set;}
}
DataContext dc= new DataContext();
List<Employee> employeeList = dc.Employees.ToList();