2022
05-30
05-30
两种获取connectionString的方式案例详解
两种获取connectionString的方式1.publicstaticstringconnectionString=ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;<connectionStrings><addname="ConnectionString"connectionString="DataSource=localhost;PersistSecurityInfo=True;UserID=***;Password=***;Unicode=True"providerName="System.Data.OracleClient"/></connectionStrings>2.publicstaticstrin...
继续阅读 >