Class MatchColumn

This attribute defines that this property is used to match with the property of the object used in the Source for a Lookup identified by the given lookupSourcePropertyName.

Inheritance
MatchColumn
Inherited Members
Namespace: ETLBox
Assembly: ETLBox.dll
Syntax
    [AttributeUsage(AttributeTargets.Property)]
public sealed class MatchColumn : 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

MatchColumn()

Declaration
    public MatchColumn()

MatchColumn(string)

This property is used to check if is matches with the lookup data .

Declaration
    public MatchColumn(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