Show / Hide Table of Contents

Class DatabaseReaderValueProvider

Provides column values from a database reader.

Inheritance
System.Object
DatabaseReaderValueProvider
Implements
IValueProvider
Namespace: Paradigm.ORM.Data.ValueProviders
Assembly: Paradigm.ORM.Data.dll
Syntax
public class DatabaseReaderValueProvider : object, IValueProvider

Constructors

| Improve this Doc View Source

DatabaseReaderValueProvider(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 Source

GetValue(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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

Implements

IValueProvider

Extension Methods

ObjectExtensions.ThrowIfFails<TException>(Object, Action, String)
ObjectExtensions.ThrowIfFails<TException, TResult>(Object, Func<TResult>, String)
ObjectExtensions.ThrowIfFailsAsync<TException>(Object, Func<Task>, String)
ObjectExtensions.ThrowIfFailsAsync<TException, TResult>(Object, Func<Task<TResult>>, String)

See Also

IValueProvider
  • Improve this Doc
  • View Source
Powered by MiracleDevs ©2017. Code licensed under the MIT License.
Documentation generated by DocFX.