Field<T> Class

Represents a column of the table's row. Each instance corresponds to the parameter in the constructor that the class qualified with TableAttribute has.

C#
public sealed class Field<T> : WildField

Type Parameters

T

The type qualified with TableAttribute.

Inheritance
Field<T>
Implements

Constructors

Field(ParameterInfo)

Initializes a new instance of the Field<T> class.

Properties

Methods

GetPropertyValue(T)

Gets the value of the property associated with the field that the specified row object contains.

Equals(object) (Inherited from object)
GetHashCode() (Inherited from object)
GetType() (Inherited from object)
MemberwiseClone() (Inherited from object)
ToString() (Inherited from object)

Constructors Detail

Field(ParameterInfo)

Initializes a new instance of the Field<T> class.

C#
public Field(ParameterInfo parameterInfo)

Parameters

parameterInfo
ParameterInfo

The constructor's parameter corresponding to this field.

Properties Detail

ParameterName

C#
public string ParameterName { get; }

Property Value

Implements

ColumnDefinition

C#
public string ColumnDefinition { get; }

Property Value

Implements

ColumnName

C#
public string ColumnName { get; }

Property Value

Implements

PropertyInfo

C#
public PropertyInfo PropertyInfo { get; }

Property Value

Implements

IsAutoIncrement

C#
public bool IsAutoIncrement { get; }

Property Value

Implements

Methods Detail

GetPropertyValue(T)

Gets the value of the property associated with the field that the specified row object contains.

C#
public object GetPropertyValue(T row)

Parameters

row
T

The row object that contains this field.

Returns

The property value.