KeyColumn

Class KeyColumn

This attribute defines if the column is used as as Key when the object is stored in a Key/Value database (e.g. Couchbase or Redis). The key column must either be of type string or implement the ToString() method.

Inheritance
KeyColumn
Inherited Members
Namespace: ETLBox
Assembly: ETLBox.dll
Syntax
    [AttributeUsage(AttributeTargets.Property)]
public sealed class KeyColumn : Attribute
Examples
public class MyPoco : MergeableRow
{
    [KeyColumn]
    public string KeyName { get; set; }
    public string Value {get;set; }
}

Constructors

KeyColumn()

This property is used as an Key column when inserting data into a Key/Value store

Declaration
    public KeyColumn()

Properties

KeyPropertyName

Name of the property used for the Key - must be of type string

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