DeleteColumn

Class DeleteColumn

This attribute defines if the column is used to identify if the record is supposed to be deleted. If this attribute is set and the given value matches the column of the assigned property, the DbMerge will know that if the records matches (identifed by the IdColumn attribute) it should be deleted.

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

public class MyPoco : MergeableRow { [IdColumn] public int Key { get; set; } [UpdateColumn] public string Value {get;set; } [DeleteColumn(true)] public bool IsDeletion {get;set; } }

Constructors

DeleteColumn()

Declaration
    public DeleteColumn()

DeleteColumn(object)

Marks this property as column that is deleted if is equal the DeleteOnMatchValue.

Declaration
    public DeleteColumn(object deleteOnMatchValue)
Parameters
TypeNameDescription
objectdeleteOnMatchValue

To be value for the property that identifes the row as deletion

Properties

DeleteOnMatchValue

Marks this property as column used for a deletion check in a Merge operation

Declaration
    public object DeleteOnMatchValue { get; set; }
Property Value
TypeDescription
object

DeletePropertyName

Name of the property that is used to decide if a row is deleted

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