File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
src/Microsoft.Data.SqlClient/src/Microsoft/Data/ProviderBase Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 99using System . Diagnostics ;
1010using System . Globalization ;
1111using System . IO ;
12+ using System . Xml ;
1213
1314namespace Microsoft . Data . ProviderBase
1415{
@@ -499,9 +500,14 @@ private void LoadDataSetFromXml(Stream XmlStream)
499500 {
500501 _metaDataCollectionsDataSet = new DataSet
501502 {
502- Locale = System . Globalization . CultureInfo . InvariantCulture
503+ Locale = CultureInfo . InvariantCulture
504+ } ;
505+ XmlReaderSettings settings = new ( )
506+ {
507+ XmlResolver = null
503508 } ;
504- _metaDataCollectionsDataSet . ReadXml ( XmlStream ) ;
509+ using XmlReader reader = XmlReader . Create ( XmlStream , settings ) ;
510+ _metaDataCollectionsDataSet . ReadXml ( reader ) ;
505511 }
506512
507513 protected virtual DataTable PrepareCollection ( string collectionName , string [ ] restrictions , DbConnection connection )
You can’t perform that action at this time.
0 commit comments