Class Cursor
Represents a buffer-less unidicrectional reader that binds IEnumerable(Doc) and the backend resource (such as SQLReader or other object which is internal to the backend). The cursor is NOT thread-safe and must be disposed properly by closing all resources associated with it. Only one iteration (one call to GetEnumerator) is possible
Inheritance
System.Object
Cursor
Implements
System.IDisposable
System.Collections.Generic.IEnumerable<Doc>
System.Collections.IEnumerable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Azos.Data.Access
Assembly: Azos.dll
Syntax
public abstract class Cursor : DisposableObject, IDisposable, IEnumerable<Doc>, IEnumerable
Constructors
Cursor(IEnumerable<Doc>)
This method is not inteded to be called by application developers
Declaration
protected Cursor(IEnumerable<Doc> source)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<Doc> | source |
Fields
m_Enumerator
Declaration
protected Cursor.enumerator m_Enumerator
Field Value
Type | Description |
---|---|
Cursor.enumerator |
m_Source
Declaration
protected IEnumerable<Doc> m_Source
Field Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Doc> |
Methods
Destructor()
Declaration
protected override void Destructor()
Overrides
GetEnumerator()
Declaration
public virtual IEnumerator<Doc> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<Doc> |
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |
Implements
System.IDisposable
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable