<?xml version="1.0" encoding="utf-8"?>
<configuration>
<connectionStrings>
<add name="OrganizeEntities" connectionString="metadata=res://*/AEF2SQL.csdl|res://*/AEF2SQL.ssdl|res://*/AEF2SQL.msl;provider=System.Data.SqlClient;provider connection string="Data Source=QKF;Initial Catalog=Organize;Persist Security Info=True;User ID=sa;Password=111;Pooling=False;MultipleActiveResultSets=True"" providerName="System.Data.EntityClient" />
</configuration>

  还有另外的写法

<add name="TestEntities" connectionString="metadata=res://*/Models.Model2.csdl|res://*/Models.Model2.ssdl|res://*/Models.Model2.msl;provider=System.Data.SqlClient;provider connection string=" Data Source=EDMIKE;Initial Catalog=Test;Integrated Security=True;User ID=admin;Password=123"/>
</connectionStrings>

  

05-02 12:30