Tests.EmployeeRepositoryEF_Novice.Get C# (CSharp) 메소드

Get() 공개 메소드

public Get ( int employeeKey ) : Employee
employeeKey int
리턴 Employee
        public Employee Get(int employeeKey)
        {
            using (var context = new CodeFirstModels())
            {
                return context.Employees.Where(e => e.EmployeeKey == employeeKey).First();
            }
        }