Hi
I have a customer entity and want to load it with pk process it and load with another primerykey.I think it should be like this:
DataAccessAdapter adapter = new DataAccessAdapter();
CustomerEntity customer = new CustomerEntity("CHOPS");
adapter.FetchEntity(customer);
customer = new CustomerEntity("pk2");
adapter.FetchEntity(customer);
customer = new CustomerEntity("pk3");
adapter.FetchEntity(customer);
But is there a better way by just loading by primerykey and without instancing a new instance? like following seudo code?
DataAccessAdapter adapter = new DataAccessAdapter();
CustomerEntity customer = new CustomerEntity("CHOPS");
adapter.FetchEntity(customer);
customer.loadbyPk("pk2");
customer.loadbyPk("pk3");
Regards