<!--Microsoft.Practices.EnterpriseLibrary.Data.dll 操作引用程序集--> <connectionStrings> <add name="AccessConnectionString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|AccessDB.mdb" providerName="System.Data.OleDb" /> </connectionStrings>
static Database db = DatabaseFactory.CreateDatabase("AccessConnectionString");