Exemplo n.º 1
0
        // TRAINEE COM ENTITY FRAMEWORK
        // =========================================================================

        private static void BuscarTraineePorIdEF(TraineeRepositorioEF traineedb)
        {
            Console.WriteLine();

            Trainee trainee = traineedb.BuscarTraineePorID(1);

            Console.WriteLine(trainee);
        }
Exemplo n.º 2
0
        private static void AtualizarTraineeEF(TraineeRepositorioEF traineedb)
        {
            Console.WriteLine();

            Trainee updateTrainee = traineedb.BuscarTraineePorID(1);

            updateTrainee.Nome = "Pedro Matias";
            traineedb.AtualizarTrainee(updateTrainee);

            Console.WriteLine();
        }