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
object
System.Attribute
MatchColumn
Inherited Members
System.Attribute.Equals(object)
System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type, bool)
System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type, bool)
System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type, bool)
System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type, bool)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, bool)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type, bool)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, bool)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type, bool)
System.Attribute.GetCustomAttributes(System.Reflection.Module)
System.Attribute.GetCustomAttributes(System.Reflection.Module, bool)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type, bool)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, bool)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type, bool)
System.Attribute.GetHashCode()
System.Attribute.IsDefaultAttribute()
System.Attribute.IsDefined(System.Reflection.Assembly, System.Type)
System.Attribute.IsDefined(System.Reflection.Assembly, System.Type, bool)
System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type)
System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type, bool)
System.Attribute.IsDefined(System.Reflection.Module, System.Type)
System.Attribute.IsDefined(System.Reflection.Module, System.Type, bool)
System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type)
System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type, bool)
System.Attribute.Match(object)
System.Attribute.TypeId
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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()
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; }
}

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