Class ClassValueProvider
Provides property values from objects.
Inheritance
System.Object
ClassValueProvider
Implements
Namespace: Paradigm.ORM.Data.ValueProviders
Assembly: Paradigm.ORM.Data.dll
Syntax
public class ClassValueProvider : object, IValueProvider
Constructors
| Improve this Doc View SourceClassValueProvider(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 SourceCurrentEntity
Gets or sets the current entity.
Declaration
public object CurrentEntity { get; }
Property Value
Type | Description |
---|---|
System.Object |
CurrentIndex
Gets or sets the current reading index.
Declaration
public int CurrentIndex { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Entities
Gets the entities.
Declaration
public List<object> Entities { get; }
Property Value
Type | Description |
---|---|
List<System.Object> |
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 there are more entities to read, 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 there are more entities to read, false otherwise. |