/// <summary> /// constructor that includes creating address repository instance. makes the collaborative relation between customerRepository and addressRepository /// </summary> public CustomerRepository() { //creating new address repository addressRepository = new AddressRepository(); }
//create a constructore that creates a new addess repo //this establishes a collaboarative relationship between customer repo and address repo //another and better way to do this is use an id, see oder rleationship to customer fot this public CustomerRepository() { addressRepository = new AddressRepository(); }