Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Customer customer = new Customer {
                Id = 1, LastName = "Işık Güneş", Age = 24
            };
            CustomerDal customerDal = new CustomerDal();

            customerDal.AddNew(customer);
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            Customer customer = new Customer {
                Id = 1, Name = "Engin", age = 32
            };
            CustomerDal customerDal = new CustomerDal();

            customerDal.AddNew(customer); //bunu .add yaparsan kullanılmaması öngörüldüğünü söyler sana
            Console.WriteLine(customerDal);
        }
Ejemplo n.º 3
0
        static void Main(string[] args)
        {
            Customer customer = new Customer {
                Id = 187, LastName = "Aslan", Age = 24
            };
            CustomerDal customerDal = new CustomerDal();

            //customerDal.Add(customer);
            customerDal.AddNew(customer);
            Console.ReadLine();
        }
Ejemplo n.º 4
0
        static void Main(string[] args)
        {
            Customer customer = new Customer
            {
                Id       = 1,
                LastName = "Arık",
                Age      = 16,
            };

            CustomerDal customerDal = new CustomerDal();

            customerDal.Add(customer);
            customerDal.AddNew(customer);

            Console.ReadLine();
        }