Here are the examples of the csharp api class System.Data.Common.DbDataReader.Dispose(bool) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
25 Examples
0
1. Example
View license[ EditorBrowsableAttribute(EditorBrowsableState.Never) ] public void Dispose() { Dispose(true); }
0
0
3. Example
View licenseprotected override void Dispose(bool disposing) { if (disposing && null != reader) { reader.Dispose(); reader = null; } base.Dispose(disposing); }
0
4. Example
View licenseprotected override void Dispose(bool disposing) { if (disposing && null != reader) { reader.Dispose(); reader = null; } base.Dispose(disposing); }
0
5. Example
View licenseprotected override void Dispose(bool disposing) { if (disposing && null != reader) { reader.Dispose(); reader = null; } base.Dispose(disposing); }
0
6. Example
View licenseprotected override void Dispose(bool disposing) { if (disposing && null != reader) { reader.Dispose(); reader = null; } base.Dispose(disposing); }
0
7. Example
View licensepublic void Dispose() { if (!_disposed) { this.DbDataReader.Dispose(); _disposed = true; } }
0
0
9. Example
View licenseprotected override void Dispose(bool disposing) { // The Dispose method of the base class invokes Close method base.Dispose(disposing); }
0
0
11. Example
View licenseprotected override void Dispose(bool disposing) { if (disposing) { Close(); } base.Dispose(disposing); }
0
12. Example
View licenseprotected override void Dispose(bool disposing) { if (disposing) { InnerDataReader.Dispose(); } base.Dispose(disposing); }
0
13. Example
View licenseprotected override void Dispose(bool disposing) { Logger.LogPerformanceCounter( "SpannerDataReader.ActiveCount", () => Interlocked.Decrement(ref s_readerCount)); _resultSet?.Dispose(); _connectionToClose?.Close(); _txToClose?.Dispose(); base.Dispose(disposing); }
0
14. Example
View licenseprotected override void Dispose(bool disposing) { #if DEBUG System.Diagnostics.Trace.WriteLine("NuoDbDataReader::Dispose()"); #endif Close(); base.Dispose(disposing); }
0
15. Example
View licenseprotected override void Dispose(bool disposing) { // base.Dispose() will call Close() base.Dispose(disposing); _resultRowsEnumerator.Dispose(); _state = State.Disposed; }
0
16. Example
View licenseprotected override void Dispose(bool disposing) { base.Dispose(disposing); if (disposing) Shutdown(); }
0
17. Example
View licenseprotected override void Dispose(bool disposing) { base.Dispose(disposing); if (disposing) { _reader.Dispose(); _command.Dispose(); } }
0
18. Example
View licenseprotected override void Dispose(bool disposing) { GC.SuppressFinalize(this); if (disposing) reader.Dispose(); base.Dispose(disposing); }
0
19. Example
View licenseprotected override void Dispose(bool disposing) { if (!_disposed) { /n ..... /n //View Source file for more details /n }
0
20. Example
View licensepublic override Task<object> ExecuteScalarAsync(CancellationToken cancellationToken) {/n ..... /n //View Source file for more details /n }
0
21. Example
View license[Obsolete("Retrieving binaries as a stream will be removed from the next version of DD4T")] public System.IO.Stream GetBinaryStreamByUrl(string url) { SqlReaderStream stream = null; using (SqlConnection cn = new SqlConnection(ConnectionString)) { SqlCommand cmd = new SqlCommand(SqlQuery, cn); cmd.Parameters.Add("@url", SqlDbType.VarChar, 255); // note: the length of the URL parameter must equal the length of the BINARY_VARIANT.PATH column in the broker database cmd.Parameters["@url"].Value = url; cn.Open(); //CommandBehavior.SequentialAccess avoids loading the entire BLOB in-memory. SqlDataReader reader = cmd.ExecuteReader(CommandBehavior.SequentialAccess); if (false == reader.Read()) { reader.Dispose(); return null; } stream = new SqlReaderStream(reader, 0); } return stream; }
0
22. Example
View license[Obsolete("Retrieving binaries as a stream will be removed from the next version of DD4T")] public System.IO.Stream GetBinaryStreamByUrl(string url) { SqlReaderStream stream = null; using (SqlConnection cn = new SqlConnection(ConnectionString)) { SqlCommand cmd = new SqlCommand(SqlQuery, cn); cmd.Parameters.Add("@url", SqlDbType.VarChar, 255); // note: the length of the URL parameter must equal the length of the BINARY_VARIANT.PATH column in the broker database cmd.Parameters["@url"].Value = url; cn.Open(); //CommandBehavior.SequentialAccess avoids loading the entire BLOB in-memory. SqlDataReader reader = cmd.ExecuteReader(CommandBehavior.SequentialAccess); if (false == reader.Read()) { reader.Dispose(); return null; } stream = new SqlReaderStream(reader, 0); } return stream; }
0
23. Example
View license[Obsolete("Retrieving binaries as a stream will be removed from the next version of DD4T")] public System.IO.Stream GetBinaryStreamByUrl(string url) { SqlReaderStream stream = null; using (SqlConnection cn = new SqlConnection(ConnectionString)) { SqlCommand cmd = new SqlCommand(SqlQuery, cn); cmd.Parameters.Add("@url", SqlDbType.VarChar, 255); // note: the length of the URL parameter must equal the length of the BINARY_VARIANT.PATH column in the broker database cmd.Parameters["@url"].Value = url; cn.Open(); //CommandBehavior.SequentialAccess avoids loading the entire BLOB in-memory. SqlDataReader reader = cmd.ExecuteReader(CommandBehavior.SequentialAccess); if (false == reader.Read()) { reader.Dispose(); return null; } stream = new SqlReaderStream(reader, 0); } return stream; }
0
24. Example
View license[Obsolete("Retrieving binaries as a stream will be removed from the next version of DD4T")] public System.IO.Stream GetBinaryStreamByUrl(string url) { SqlReaderStream stream = null; using (SqlConnection cn = new SqlConnection(ConnectionString)) { SqlCommand cmd = new SqlCommand(SqlQuery, cn); cmd.Parameters.Add("@url", SqlDbType.VarChar, 255); // note: the length of the URL parameter must equal the length of the BINARY_VARIANT.PATH column in the broker database cmd.Parameters["@url"].Value = url; cn.Open(); //CommandBehavior.SequentialAccess avoids loading the entire BLOB in-memory. SqlDataReader reader = cmd.ExecuteReader(CommandBehavior.SequentialAccess); if (false == reader.Read()) { reader.Dispose(); return null; } stream = new SqlReaderStream(reader, 0); } return stream; }
0
25. Example
View licenseprotected override void Dispose(bool disposing) { source.Dispose(); base.Dispose(disposing); }