Class level of data access section

xiaoxiao2021-03-06  69

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.

转载请注明原文地址:https://www.9cbs.com/read-91331.html

New Post(0)