using presence; using presence.Repository; RemoteDatabaseContext remoteDatabaseContext = new RemoteDatabaseContext(); SQLGroupRepository groupRepository = new SQLGroupRepository(remoteDatabaseContext); foreach (var item in groupRepository.GetAllGroup()) { Console.WriteLine($"{item.IdGroup} {item.NameGroup}"); }