<appSettings> <!--数据库连接--> <add key="ConnectionString" value="server=.\SQLEXPRESS;database=DBNAME;uid=sa;pwd=sa"/> </appSettings>