Table of Contents

Class AttributeSnapshot

Namespace
The.Model.Snapshot
Assembly
Instagile.Model.dll
public sealed class AttributeSnapshot : IPropertySnapshot
Inheritance
AttributeSnapshot
Implements
Inherited Members

Constructors

AttributeSnapshot(ModelSnapshot, Attribute)

public AttributeSnapshot(ModelSnapshot context, Attribute wrap)

Parameters

context ModelSnapshot
wrap Attribute

Properties

CalculationMode

public CalculationType CalculationMode { get; }

Property Value

CalculationType

Caption

public string Caption { get; }

Property Value

string

DefaultValue

public Optional<string> DefaultValue { get; }

Property Value

Optional<string>

Display

public DisplaySettings Display { get; }

Property Value

DisplaySettings

ID

public Guid ID { get; }

Property Value

Guid

IsAudited

public bool IsAudited { get; }

Property Value

bool

IsAutonum

public bool IsAutonum { get; }

Property Value

bool

IsCalculated

public bool IsCalculated { get; }

Property Value

bool

IsDateType

public bool IsDateType { get; }

Property Value

bool

IsDocumentType

public bool IsDocumentType { get; }

Property Value

bool

IsHidden

public bool IsHidden { get; }

Property Value

bool

IsIndexed

public bool IsIndexed { get; }

Property Value

bool

IsLegacy

public bool IsLegacy { get; }

Property Value

bool

IsNullable

public bool IsNullable { get; }

Property Value

bool

IsPrimaryKey

public bool IsPrimaryKey { get; }

Property Value

bool

IsReferenceType

public bool IsReferenceType { get; }

Property Value

bool

IsRequired

public bool IsRequired { get; }

Property Value

bool

IsTransient

public bool IsTransient { get; }

Property Value

bool

IsUnique

public bool IsUnique { get; }

Property Value

bool

MaxLength

public Optional<int> MaxLength { get; }

Property Value

Optional<int>

Model

public ModelSnapshot Model { get; }

Property Value

ModelSnapshot

Name

public string Name { get; }

Property Value

string

OrderWithinEntity

public int OrderWithinEntity { get; }

Property Value

int

OrderWithinHierarchy

public int OrderWithinHierarchy { get; }

Property Value

int

ParentEntity

public EntitySnapshot ParentEntity { get; }

Property Value

EntitySnapshot

ParentSection

public SectionSnapshot ParentSection { get; }

Property Value

SectionSnapshot

Precision

public Optional<int> Precision { get; }

Property Value

Optional<int>

Type

public AttributeType Type { get; }

Property Value

AttributeType

Methods

AsDescriptor()

public PropertyDescriptor AsDescriptor()

Returns

PropertyDescriptor

Diff(AttributeSnapshot)

public string Diff(AttributeSnapshot that)

Parameters

that AttributeSnapshot

Returns

string

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetAllTags()

public IEnumerable<KeyValuePair<string, string>> GetAllTags()

Returns

IEnumerable<KeyValuePair<string, string>>

GetCSType()

public string GetCSType()

Returns

string

GetHashCode()

public override int GetHashCode()

Returns

int

GetInternalType()

public string GetInternalType()

Returns

string

GetTag(string)

public Optional<string> GetTag(string key)

Parameters

key string

Returns

Optional<string>

Index(bool, bool)

Position of this element when placed in arrays

public int Index(bool legacyMode, bool includeTransient)

Parameters

legacyMode bool
includeTransient bool

Returns

int

ToEvents()

public IEnumerable<IEvent> ToEvents()

Returns

IEnumerable<IEvent>

ToString()

public override string ToString()

Returns

string