Design and Implementation of Configuration File Automatically Generated
暂无分享,去创建一个
The current system is usually based on three-tier, in order to achieve “high cohesion, low coupling” with modify and expand easily. The ground floor of three-tier is data access layer, in order to achieve low coupling with the upper and convenient access to the database, This paper proposes an implementation mechanism writing the database access information into configuration file, and using a database definition reader to generate the configuration file app.config automatically, while the reader is also implementing the table definition automatically. When the database design changes, or needs to be modified due to require of application, it is very convenient to adjust this require and achieve data access layer and the upper decoupling with this mechanism.