Table of Contents

Class DocumentAttributeBase<TDocument>

Namespace
The.Attributes
Assembly
Instagile.dll
public abstract class DocumentAttributeBase<TDocument> : AttributeBase<Guid?, TDocument?>, IComparable, IComparable<AttributeBase<Guid?, TDocument?>>, IOwnedValue<TDocument?>, IValue<TDocument?>, INotifyValueChanged, IProperty, IOwned, IHasChanges, IDocumentAttribute where TDocument : DocumentBase

Type Parameters

TDocument
Inheritance
AttributeBase<Guid?, TDocument>
DocumentAttributeBase<TDocument>
Implements
IOwnedValue<TDocument>
IValue<TDocument>
Derived
Inherited Members
Extension Methods

Constructors

DocumentAttributeBase(AttributeInfo, EntityKernel)

protected DocumentAttributeBase(AttributeInfo metadata, EntityKernel parent)

Parameters

metadata AttributeInfo
parent EntityKernel

Properties

HasValue

Indicates whether the underlying value of type T has a value

public bool HasValue { get; }

Property Value

bool

PersistenceValue

protected override Guid? PersistenceValue { get; set; }

Property Value

Guid?

Value

public override TDocument? Value { get; set; }

Property Value

TDocument

Methods

Compare(Guid?, Guid?)

protected override int Compare(Guid? left, Guid? right)

Parameters

left Guid?
right Guid?

Returns

int

CreateDocument(Guid)

protected abstract TDocument CreateDocument(Guid id)

Parameters

id Guid

Returns

TDocument

GetDocumentWithUpdatedRule(Guid)

protected abstract TDocument GetDocumentWithUpdatedRule(Guid id)

Parameters

id Guid

Returns

TDocument

GetOriginalText()

public override string GetOriginalText()

Returns

string

GetText()

public override string GetText()

Returns

string

InternalCopy(AttributeBase, AttributeBase)

protected override void InternalCopy(AttributeBase from, AttributeBase to)

Parameters

from AttributeBase
to AttributeBase

SetDefaulted()

clear any user-entered data and return to system defaults

public void SetDefaulted()

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

TrySetText(string)

public override bool TrySetText(string text)

Parameters

text string

Returns

bool

TypeDefault()

public override Guid? TypeDefault()

Returns

Guid?