private static void empCount(EmployeeDbContext emdbc) { var empsCount = emdbc.Employees.Count(); Console.WriteLine("Total Employee :" + empsCount); }
private static void empNamedScott(EmployeeDbContext emdbc) { var enameScott = emdbc.Employees.Single(e => e.Name == "SCOTT"); Console.WriteLine(String.Format("EMPNO :{0} Name : {1} Manager :{2} DESG :{3}", enameScott.Id, enameScott.Name, enameScott.Manager, enameScott.Job)); }