Interface IFormulaImporterContext
The context used for evaluating formulas against OverrideValueFormula
Inherited Members
Namespace: LemonEdge.Entities.Processors.Importing
Assembly: API.dll
Syntax
public interface IFormulaImporterContext : IFormulaFunctions
Properties
Item
The item being created/updated and imported
Declaration
IBaseEntity Item { get; }
Property Value
Type | Description |
---|---|
IBaseEntity |
Methods
GetValueFromColumnIndex(Int16)
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 |
---|---|---|
System.Int16 | colIndex |
Returns
Type | Description |
---|---|
System.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 |
---|---|---|
System.String | headerName |
Returns
Type | Description |
---|---|
System.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 |
---|---|---|
System.String | header | The property name of the mapping property to retrieve the value from that matches on PropertyName |
Returns
Type | Description |
---|---|
System.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 |