Considering it, decided to use Bridge Pattern. Interfaces in the DBFacade class can call interfaces, such as creating a Stamp interface addStamp (stamp), etc., there is also a member variable in dbfacade to IDBIMP M_DBIMP. IDBIMP is an interface class, OLEDBIMP and SQLDBIMP inherit itself from IDBIMP, respectively. There is an identical interface in idbimp and DBFACADE, which is completed separately in the OLEDBIMP and SQLDBIMP classes. In the constructor of DBFACADE, according to the value of appsetting ["dbimp"] in Configuration, use Activator to create an IDBIMP to implement support for multi-reproduction. The specific call ADO operation is in XXXDBIMP.