Table of Contents

Class AttributeInfo

Namespace
The.Attributes
Assembly
Instagile.dll
public sealed class AttributeInfo : PropertyInfo, IColumn
Inheritance
AttributeInfo
Implements
Inherited Members
Extension Methods

Constructors

AttributeInfo(Guid, int, int, string, int, int, bool, bool, AttributeType, bool, bool, bool, bool, bool, int, string, Func<SectionInfo>, IEntityInfo, bool, bool, string, bool, object?, Func<string?, object?>, Delegate?, Delegate?, bool, bool, Lazy<IReadOnlyList<PropertyPath>>?)

public AttributeInfo(Guid modelID, int memoryIndex, int storageIndex, string name, int maxLength, int precision, bool isRequired, bool isNullable, AttributeType dataType, bool shouldShowInSearch, bool shouldShowInList, bool shouldShowOnForm, bool isAdminOnly, bool isLegacy, int displayOrder, string caption, Func<SectionInfo> section, IEntityInfo parent, bool isCalculated, bool isTransient, string defaultValue, bool isSQLIdentity, object? typeDefault, Func<string?, object?> typeParser, Delegate? calculateSyncValue = null, Delegate? calculateAsyncValue = null, bool calculateOnDemand = false, bool calculateOnSave = false, Lazy<IReadOnlyList<PropertyPath>>? calculationDependencyPaths = null)

Parameters

modelID Guid
memoryIndex int
storageIndex int
name string
maxLength int
precision int
isRequired bool
isNullable bool
dataType AttributeType
shouldShowInSearch bool
shouldShowInList bool
shouldShowOnForm bool
isAdminOnly bool
isLegacy bool
displayOrder int
caption string
section Func<SectionInfo>
parent IEntityInfo
isCalculated bool
isTransient bool
defaultValue string
isSQLIdentity bool
typeDefault object
typeParser Func<string, object>
calculateSyncValue Delegate
calculateAsyncValue Delegate
calculateOnDemand bool
calculateOnSave bool
calculationDependencyPaths Lazy<IReadOnlyList<PropertyPath>>

Fields

CalculateAsyncValue

public readonly Delegate? CalculateAsyncValue

Field Value

Delegate

CalculateOnDemand

public readonly bool CalculateOnDemand

Field Value

bool

CalculateOnSave

public readonly bool CalculateOnSave

Field Value

bool

CalculateSyncValue

public readonly Delegate? CalculateSyncValue

Field Value

Delegate

CalculationDependencyPaths

public readonly Lazy<IReadOnlyList<PropertyPath>> CalculationDependencyPaths

Field Value

Lazy<IReadOnlyList<PropertyPath>>

Properties

DataType

public AttributeType DataType { get; }

Property Value

AttributeType

DefaultValue

public string DefaultValue { get; }

Property Value

string

DynamicDefaultValue

public object? DynamicDefaultValue { get; }

Property Value

object

IsCalculated

public bool IsCalculated { get; }

Property Value

bool

IsNullable

public bool IsNullable { get; }

Property Value

bool

IsSQLIdentity

public bool IsSQLIdentity { get; }

Property Value

bool

IsTransient

public bool IsTransient { get; }

Property Value

bool

MaxLength

public int MaxLength { get; }

Property Value

int

ModelID

public Guid ModelID { get; }

Property Value

Guid

Precision

public int Precision { get; }

Property Value

int

Methods

DynamicParse(string?)

public object? DynamicParse(string? text)

Parameters

text string

Returns

object

GetCalcDeps(Type, string)

public static IEnumerable<CalculationDependencyAttribute> GetCalcDeps(Type t, string attribute)

Parameters

t Type
attribute string

Returns

IEnumerable<CalculationDependencyAttribute>

GetCalcDeps<T>(string)

public static IEnumerable<CalculationDependencyAttribute> GetCalcDeps<T>(string attribute)

Parameters

attribute string

Returns

IEnumerable<CalculationDependencyAttribute>

Type Parameters

T

GetText(EntityKernel)

public override string GetText(EntityKernel row)

Parameters

row EntityKernel

Returns

string

GetValues(EntityKernel)

public override object?[] GetValues(EntityKernel row)

Parameters

row EntityKernel

Returns

object[]

PrepareExportAsync(EntityKernel, CancellationToken)

protected override Task PrepareExportAsync(EntityKernel row, CancellationToken cancellationToken)

Parameters

row EntityKernel
cancellationToken CancellationToken

Returns

Task

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.