DotNetnuke3 Research Report Second (Data Access)

xiaoxiao2021-03-06  39

In order to maintain DNN versatility for data access, DNN3 developers have carefully designed data calls. Let us appreciate the DNN excellent data access solution! The first database of DNN is SQL Server, but is never limited to using SQLServer but is suitable for all storage solutions. Such as: Oracle, Access ..., etc., can even be an XML file or a general text file. What data access schemes use DNN3 is determined by configurations in Web.config.

Data Access Scheme Configuration Read

This section is determined, DNN's data access The configuration of the program is processed by the dotNetnuke.framework.providers.ProviderConfigurationHandler class in the DotNetnuke namespace. Specific data access scheme configuration parameter This section is added An option of appsetings, generally said as a database connection configuration, here you can change to other names and string values ​​according to your own needs. Data access program module configuration in web.config, you will find many similar contents with the following configuration, These configuration fees are DNN to set data access scheme for each module, so we even Different data access schemes can be set for each module of DNN, of course, multiple different databases can be used.

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

New Post(0)