Interface IFormulaImporterContext
The context used for evaluating formulas against OverrideValueFormula
Inherited Members
Namespace: LemonEdge.API.Core.Processors.Importing
Assembly: LemonEdge.API.dll
Syntax
public interface IFormulaImporterContext : IFormulaFunctions
Properties
IsLastRow
Indicates this item being evaluated is the last row of the dataset being imported
Declaration
bool IsLastRow { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Item
The item being created/updated and imported
Declaration
IBaseEntity Item { get; }
Property Value
| Type | Description |
|---|---|
| IBaseEntity |
MyRawValue
The raw value of the import source data for this column
Declaration
string MyRawValue { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
GetValueFromColumnIndex(short)
Returns the raw string data from the import file for the mapping property that matches on Sequence
Declaration
string GetValueFromColumnIndex(short colIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| short | colIndex |
Returns
| Type | Description |
|---|---|
| string | The raw string data from the import file for the mapping property that matches on Sequence |
GetValueFromHeaderName(string)
Returns the raw string data from the import file for the mapping property that matches on ColumnHeaderName
Declaration
string GetValueFromHeaderName(string headerName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | headerName |
Returns
| Type | Description |
|---|---|
| string | The raw string data from the import file for the mapping property that matches on ColumnHeaderName |
GetValueFromMappedProperty(string)
Returns the raw string data from the import file for the mapping property that matches on PropertyName
Declaration
string GetValueFromMappedProperty(string header)
Parameters
| Type | Name | Description |
|---|---|---|
| string | header | The property name of the mapping property to retrieve the value from that matches on PropertyName |
Returns
| Type | Description |
|---|---|
| string | The raw string data from the import file for the mapping property that matches on PropertyName |
ItemAs<T>()
The imported item cast as the type of entity it should be
Declaration
T ItemAs<T>() where T : IBaseEntity
Returns
| Type | Description |
|---|---|
| T | The imported item cast as the type of entity it should be |
Type Parameters
| Name | Description |
|---|---|
| T | The type of entity that should be being imported |