<dataConfiguration defaultDatabase="数据库name" /> 配置默认数据库 <connectionStrings> <add name="数据库name" connectionString="server=***;uid=***;pwd=***;database=***;Connect Timeout=3000" providerName="System.Data.SqlClient" /> </connectionStrings>
<dataConfiguration defaultDatabase="数据库name" /> 配置默认数据库 <connectionStrings> <add name="数据库name" connectionString="server=***;uid=***;pwd=***;database=***;Connect Timeout=3000" providerName="System.Data.SqlClient" /> </connectionStrings>
转载于:https://www.cnblogs.com/mchuang/p/6139833.html