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
modelIDGuidmemoryIndexintstorageIndexintnamestringmaxLengthintprecisionintisRequiredboolisNullablebooldataTypeAttributeTypeshouldShowInSearchboolshouldShowInListboolshouldShowOnFormboolisAdminOnlyboolisLegacybooldisplayOrderintcaptionstringsectionFunc<SectionInfo>parentIEntityInfoisCalculatedboolisTransientbooldefaultValuestringisSQLIdentitybooltypeDefaultobjecttypeParserFunc<string, object>calculateSyncValueDelegatecalculateAsyncValueDelegatecalculateOnDemandboolcalculateOnSaveboolcalculationDependencyPathsLazy<IReadOnlyList<PropertyPath>>
Fields
CalculateAsyncValue
public readonly Delegate? CalculateAsyncValue
Field Value
CalculateOnDemand
public readonly bool CalculateOnDemand
Field Value
CalculateOnSave
public readonly bool CalculateOnSave
Field Value
CalculateSyncValue
public readonly Delegate? CalculateSyncValue
Field Value
CalculationDependencyPaths
public readonly Lazy<IReadOnlyList<PropertyPath>> CalculationDependencyPaths
Field Value
Properties
DataType
public AttributeType DataType { get; }
Property Value
DefaultValue
public string DefaultValue { get; }
Property Value
DynamicDefaultValue
public object? DynamicDefaultValue { get; }
Property Value
IsCalculated
public bool IsCalculated { get; }
Property Value
IsNullable
public bool IsNullable { get; }
Property Value
IsSQLIdentity
public bool IsSQLIdentity { get; }
Property Value
IsTransient
public bool IsTransient { get; }
Property Value
MaxLength
public int MaxLength { get; }
Property Value
ModelID
public Guid ModelID { get; }
Property Value
Precision
public int Precision { get; }
Property Value
Methods
DynamicParse(string?)
public object? DynamicParse(string? text)
Parameters
textstring
Returns
GetCalcDeps(Type, string)
public static IEnumerable<CalculationDependencyAttribute> GetCalcDeps(Type t, string attribute)
Parameters
Returns
GetCalcDeps<T>(string)
public static IEnumerable<CalculationDependencyAttribute> GetCalcDeps<T>(string attribute)
Parameters
attributestring
Returns
Type Parameters
T
GetText(EntityKernel)
public override string GetText(EntityKernel row)
Parameters
rowEntityKernel
Returns
GetValues(EntityKernel)
public override object?[] GetValues(EntityKernel row)
Parameters
rowEntityKernel
Returns
- object[]
PrepareExportAsync(EntityKernel, CancellationToken)
protected override Task PrepareExportAsync(EntityKernel row, CancellationToken cancellationToken)
Parameters
rowEntityKernelcancellationTokenCancellationToken
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.