<dataConfiguration defaultDatabase="数据库name" /> 配置默认数据库 <connectionStrings> <add name="数据库name" connectionString="server=***;uid=***;pwd=***;database=***;Connect Timeout=3000" providerName="System.Data.SqlClient" /> </connectionStrings>