Exemplo n.º 1
0
 /// <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();
 }
Exemplo n.º 2
0
 //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();
 }