USBドングルロックに接続文字列を入れ、ロックから接続文字列を読み取るようにします。 しかし、私はado.netとapp.configを上に置かれた接続文字列に文字列を渡す方法がわからない(私はado.netを使用しています)次のコードは、私の接続文字列タグである:。app.configに文字列を接続文字列として入力する方法は?
<connectionStrings><add name="Db_ReceptionEntities1" connectionString="metadata=res://*/Model.DBReception.csdl|res://*/Model.DBReception.ssdl|res://*/Model.DBReception.msl;provider=System.Data.SqlClient;provider connection string="data source=.;initial catalog=Db_Reception;user id=sa;password=******;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" /></connectionStrings>
[App.configから接続文字列を取得する]の可能な複製(https://stackoverflow.com/questions/6536715/get-connection-strin) g-from-app-config) – john
@john私は彼らが完全に異なっていると信じています。私はUSBが接続されているときに接続文字列を渡したいと思います。 –
それはおそらく "duplicate"の可能性があると思いますか?助けようとする人々に怒る必要はありません。 – john