mvc code first、db first 数据库链接串区别
<connectionStrings> code first: connectionString="Data Source=192.168.2.208; <add name="DBContext" initial catalog=BPMS_2 ; persist security info=True; user id=sa; password=www.123.com; MultipleActiveResultSets=True; App=EntityFramework" providerName="System.Data.SqlClient"/>
</connectionStrings> |
<connectionStrings> db first: <add name="BPMS_2Entities" connectionString="metadata=res://*/ModelTEST.csdl|res://*/ModelTEST.ssdl|res://*/ModelTEST.msl;
</connectionStrings> |