Realization of parametric database connection in C# programming
Shi Yong-xiang · Jisuanji gongcheng yu sheji · 2006
INI file mostly saves selections of users and all kinds of system parameters, and users can change configurations of applicationsand systems by modifying INI file. INI file structure, reading and writing are firstly introduced. INI file can be operatered in C# withwin32 API funetions of Windows system WritePrivateProfileString () function and GetPrivateProfileString () function. Then the methodof parametric database connection in C# programming by using INI file is analyzed, which makes database connection more flexible.Furthermore, to the realization of other parameters configuration in database application systems based on C/S architecture, users canalso use the configuration method as a reference.