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.
Inherited Members
Namespace: ETLBox
Assembly: ETLBox.dll
Syntax
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
DeleteColumn(object)
Marks this property as column that is deleted if is equal the DeleteOnMatchValue.
Declaration
Parameters
Type | Name | Description |
---|---|---|
object | deleteOnMatchValue | 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
Property Value
Type | Description |
---|---|
object |
DeletePropertyName
Name of the property that is used to decide if a row is deleted
Declaration
Property Value
Type | Description |
---|---|
string |