//initialize db context and use items from it public void GetEmployeeID() { is290dbEntities1 dbModel = new is290dbEntities1(); int count = dbModel.Employees.Count(); }