UpdateColumn

Class UpdateColumn

This attribute defines if a column in the destination is updated. Use the IdColumn attribute to define if a row in the destination matches with your object. If they match, you can use the UpdateColumn to describe which columns are actually updated. This is optional - if you don't provide any update columns, by default all non id columns are updated.

Inheritance
UpdateColumn
Inherited Members
Namespace: ETLBox
Assembly: ETLBox.dll
Syntax
    [AttributeUsage(AttributeTargets.Property)]
public sealed class UpdateColumn : Attribute
Examples

public class MyPoco { [IdColumn] public int Key { get; set; } [UpdateColumn] public string ValueToUpdate { get;set; } public string IgnoredValue { get;set; } }

Constructors

UpdateColumn()

Declaration
    public UpdateColumn()

Properties

UpdatePropertyName

Name of the property that is used in the update

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