Method Dispose
- Namespace
- YndigoBlue.Velocity.Engine
- Assembly
- YndigoBlue.Velocity.dll
Dispose()
Releases the underlying DbDataReader and DbCommand, closing the server-side cursor and freeing the associated connection resources.
public void Dispose()
Remarks
Safe to call even if SetupResults(DbCommand, DbDataReader) was never invoked (both fields default to null).
After disposal, any in-progress or stored enumerable/enumerator produced by this reader
(e.g. from BindColumn<T>(string), BindResults<T>(BindingType), or the
foreach/GetEnumerator members) will throw if iterated. This method does not close the
owning database connection — only the reader and command.