RetrieveColumn

Class RetrieveColumn

This attribute defines that this property is used to store the lookup value of the property from the object used in the Source for a Lookup identified by the given lookupSourcePropertyName.

Inheritance
RetrieveColumn
Inherited Members
Namespace: ETLBox
Assembly: ETLBox.dll
Syntax
    [AttributeUsage(AttributeTargets.Property)]
public sealed class RetrieveColumn : Attribute
Examples
public class MyLookupData
{
    [MatchColumn("Id")]
    public string LookupId { get; set; }
    [RetrieveColumn("Value")]
    public string LookupValue { get; set; }
}
public class MyDataRow
{
    public string Id { get; set; }    
    public string Value { get; set; }
}

Constructors

RetrieveColumn()

Declaration
    public RetrieveColumn()

RetrieveColumn(string)

This property is used to store the retrieved value from the lookup data.

Declaration
    public RetrieveColumn(string inputPropertyName)
Parameters
TypeNameDescription
stringinputPropertyName

Name of the property in the lookup object

Properties

InputPropertyName

Name of the property in the input data

Declaration
    public string InputPropertyName { get; set; }
Property Value
TypeDescription
string

LookupSourcePropertyName

Name of the corresponding column in the lookup object.

Declaration
    public string LookupSourcePropertyName { get; set; }
Property Value
TypeDescription
string