Class DatabaseReaderValueProvider
Provides column values from a database reader.
Inheritance
System.Object
DatabaseReaderValueProvider
Implements
Namespace: Paradigm.ORM.Data.ValueProviders
Assembly: Paradigm.ORM.Data.dll
Syntax
public class DatabaseReaderValueProvider : object, IValueProvider
Constructors
| Improve this Doc View SourceDatabaseReaderValueProvider(IDatabaseConnector, IDatabaseReader)
Initializes a new instance of the DatabaseReaderValueProvider class.
Declaration
public DatabaseReaderValueProvider(IDatabaseConnector connector, IDatabaseReader reader)
Parameters
Type | Name | Description |
---|---|---|
IDatabaseConnector | connector | A reference to a database connector. |
IDatabaseReader | reader | The reader. |
Methods
| Improve this Doc View SourceGetValue(IColumnDescriptor)
Gets the value related to the descriptor.
Declaration
public object GetValue(IColumnDescriptor descriptor)
Parameters
Type | Name | Description |
---|---|---|
IColumnDescriptor | descriptor | The descriptor. |
Returns
Type | Description |
---|---|
System.Object | Column descriptor value. |
MoveNext()
Moves the reading cursor to the next entity or row.
Declaration
public bool MoveNext()
Returns
Type | Description |
---|---|
System.Boolean | True if can move to another row, false otherwise. |
MoveNextAsync()
Moves the reading cursor to the next entity or row.
Declaration
public Task<bool> MoveNextAsync()
Returns
Type | Description |
---|---|
Task<System.Boolean> | True if can move to another row, false otherwise. |