Home
Sign Up
Sign In
V2EX
›
.NET
通过读取 app.config 的连接字符串来连接数据库不用指定 ProviderName?
Devin
·
Dec 4, 2017
via iPhone · 2620 views
This topic created in 3083 days ago, the information mentioned may be changed or developed.
比如这 2 个
https://stackoverflow.com/questions/15360536/how-can-i-connect-c-sharp-with-db-with-app-config
https://stackoverflow.com/questions/8476103/accessing-database-connection-string-using-app-config-in-c-sharp-winform
都只是读取 connectionstring,没有提到 providerName
读取
nfig
连接
字符
1 replies
•
2017-12-04 23:38:21 +08:00
1
hcymk2
Dec 4, 2017
1
providerName 是可选属性,而且有默认值 System.Data.SqlClient
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
1623 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 33ms ·
UTC 16:26
·
PVG 00:26
·
LAX 09:26
·
JFK 12:26
♥ Do have faith in what you're doing.
❯