Esempio n. 1
0
        public static DBO.Person GetPerson(int id)
        {
            try
               {
               DBO.Person per = new ConsoleApplicationTestUnitaire.DBO.Person() { Address = "Paris 75013", Firstname = "plop", Function = "qqch", Name = "titi" };
               return per;

               }
               catch (Exception ex)
               {
               LogMe.Log(ex);
               return null;
               }
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            DBO.Person per = new ConsoleApplicationTestUnitaire.DBO.Person();

            Console.WriteLine("nom :");
            per.Name = Console.ReadLine();
            Console.WriteLine("prénom :");
            per.Firstname = Console.ReadLine();
            Console.WriteLine("fonction :");
            per.Function = Console.ReadLine() ;
            Console.WriteLine("Adresse :");
            per.Address = Console.ReadLine();

            BusinessManagement.Person.SavePerson(per);

            DBO.Person per2 = BusinessManagement.Person.GetPerson(10);
        }