You've already forked linux-packaging-mono
Imported Upstream version 4.2.0.179
Former-commit-id: 4610231f55806d2a05ed69e5ff3faa7336cc1479
This commit is contained in:
committed by
Jo Shields
parent
aa7da660d6
commit
c042cd0c52
@@ -180,14 +180,16 @@ namespace System.Data.SqlClient
|
||||
throw SQL.NotAvailableOnContextConnection();
|
||||
}
|
||||
|
||||
NameValueCollection settings = (NameValueCollection)PrivilegedConfigurationManager.GetSection("system.data.sqlclient");
|
||||
Stream XMLStream =null;
|
||||
#if !NO_CONFIGURATION
|
||||
NameValueCollection settings = (NameValueCollection)PrivilegedConfigurationManager.GetSection("system.data.sqlclient");
|
||||
if (settings != null){
|
||||
string [] values = settings.GetValues(_metaDataXml);
|
||||
if (values != null) {
|
||||
XMLStream = ADP.GetXmlStreamFromValues(values, _metaDataXml);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
// if the xml was not obtained from machine.config use the embedded XML resource
|
||||
if (XMLStream == null){
|
||||
@@ -306,9 +308,11 @@ namespace System.Data.SqlClient
|
||||
|
||||
public static readonly SqlPerformanceCounters SingletonInstance = new SqlPerformanceCounters();
|
||||
|
||||
#if !MOBILE
|
||||
[System.Diagnostics.PerformanceCounterPermissionAttribute(System.Security.Permissions.SecurityAction.Assert, PermissionAccess=PerformanceCounterPermissionAccess.Write, MachineName=".", CategoryName=CategoryName)]
|
||||
private SqlPerformanceCounters() : base (CategoryName, CategoryHelp) {
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user