Suppose, I have four different entities in our c# design system. 1. Organization 2. Class 3. Course 4. Students Now, I have to pull the above entities data from the third party API and store in our system. I have created the four different business access classes of above entities which will have common pull method. Public bool PullFromThirdPartyApi() { //Logic goes here } So far, I can use the factory design pattern for it but problem will arise when business class may contains different functions. Suppose, Organization and Class business access contains extra below method which Course and Students business Class may not contain. Public bool PullByIDFromThirdPartyApi() { //Logic goes here } Please suggest the suitable design pattern here with approach. What I have tried: I have tried with factory design pattern which is not suitable if it extends further as mentioned in question description.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)