标签:
1 <configuration> 2 <connectionStrings> 3 <add name="ConStr" connectionString="Provider=Microsoft.Jet.OLEDB.4.0; Data Source=|DataDirectory|\myBlog.mdb" 4 providerName="System.Data.OleDb"/> 5 </connectionStrings>
相对于写绝对路径。在constr中写入|DataDirectory|,程序读取时,在会将|DataDirectory|匹配为根路径下的appcode
标签:
原文地址:http://www.cnblogs.com/flyfishing/p/4218203.html