예제 #1
0
 internal XmlReader ToXmlReader(bool async = false)
 {
     // Dev11 Bug #315513: Exception type breaking change from 4.0 RTM when calling GetChars on null xml
     // We need to wrap all exceptions inside a TargetInvocationException to simulate calling CreateSqlReader via MethodInfo.Invoke
     return(SqlTypeWorkarounds.SqlXmlCreateSqlXmlReader(this, closeInput: true, async: async));
 }
예제 #2
0
 internal XmlReader ToXmlReader(bool async = false)
 {
     return(SqlTypeWorkarounds.SqlXmlCreateSqlXmlReader(this, closeInput: true, async: async));
 }
예제 #3
0
 internal XmlReader ToXmlReader()
 {
     return(SqlTypeWorkarounds.SqlXmlCreateSqlXmlReader(ToStream(), closeInput: false));
 }