Show / Hide Table of Contents

Class ClassValueProvider

Provides property values from objects.

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

Constructors

| Improve this Doc View Source

ClassValueProvider(IDatabaseConnector, List<Object>)

Initializes a new instance of the ClassValueProvider class.

Declaration
public ClassValueProvider(IDatabaseConnector connector, List<object> entities)
Parameters
Type Name Description
IDatabaseConnector connector

A reference to a database connector.

List<System.Object> entities

The entities.

Properties

| Improve this Doc View Source

CurrentEntity

Gets or sets the current entity.

Declaration
public object CurrentEntity { get; }
Property Value
Type Description
System.Object
| Improve this Doc View Source

CurrentIndex

Gets or sets the current reading index.

Declaration
public int CurrentIndex { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

Entities

Gets the entities.

Declaration
public List<object> Entities { get; }
Property Value
Type Description
List<System.Object>

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 there are more entities to read, 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 there are more entities to read, 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.