Ejemplo n.º 1
0
        public void createAddress(Address adr)
        {
            using (var db = new CardealerEF())
               {
               // Create and save a new Blog

               db.Address.Add(adr);
               db.SaveChanges();
               }
        }
Ejemplo n.º 2
0
 public Customer(string name, string phone, string personalAddress, string city, string postCode, string country)
 {
     Name = name;
     Phone = phone;
     address = new Address(personalAddress,city,postCode,country);
 }
Ejemplo n.º 3
0
 static void Main(string[] args)
 {
     Address adr = new Address("test","tesge","gsgr","gsrg");
     CreateAdd cadd = new CreateAdd();
     cadd.createAddress(adr);
 }