static void Main(string[] args)
        {
            dal d = new dal();

            foreach (var person in d.GetAllPersons())
            {
                Console.WriteLine(person.FirstName + " " + person.LastName + " " + person.PersonType.ToString());
            }
        }
예제 #2
0
        static void Main(string[] args)
        {
            Person p = new Person()
            {
                Email = "*****@*****.**", FirstName = "Moshe", LastName = "Gowers", Password = "******", PersonType = BussinnesEntity.Type.manager
            };
            dal sc = new dal();

            sc.Insert(p);
            foreach (var x in sc.GetAllPersons())
            {
                Console.WriteLine(x.FirstName);
            }
        }