更新的問題如何在連接字符串中指定數據源?
如何將數據源指定給本地MSSQL服務器?
<connectionStrings>
<add name="DefaultConnection" connectionString="Data Source=(localhost)\SQLEXPRESS;Initial Catalog=bladb;Integrated Security=true" providerName="System.Data.SqlClient" />
</connectionStrings>
無論我嘗試什麼,我總是收到「未找到數據源」異常。
我不認爲它變得比這更容易。我知道定義datacontexts更復雜的方法,雖然.... – rene