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
object
System.Attribute
RetrieveColumn
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 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()
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; }
}
RetrieveColumn(string)
This property is used to store the retrieved value from the lookup data.
Declaration
public RetrieveColumn(string inputPropertyName)
Parameters
Type | Name | Description |
---|---|---|
string | inputPropertyName | 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
Type | Description |
---|---|
string |
LookupSourcePropertyName
Name of the corresponding column in the lookup object.
Declaration
public string LookupSourcePropertyName { get; set; }
Property Value
Type | Description |
---|---|
string |