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
metadataAttributeInfoparentEntityKernel
Properties
HasValue
Indicates whether the underlying value of type T has a value
public bool HasValue { get; }
Property Value
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
Returns
CreateDocument(Guid)
protected abstract TDocument CreateDocument(Guid id)
Parameters
idGuid
Returns
- TDocument
GetDocumentWithUpdatedRule(Guid)
protected abstract TDocument GetDocumentWithUpdatedRule(Guid id)
Parameters
idGuid
Returns
- TDocument
GetOriginalText()
public override string GetOriginalText()
Returns
GetText()
public override string GetText()
Returns
InternalCopy(AttributeBase, AttributeBase)
protected override void InternalCopy(AttributeBase from, AttributeBase to)
Parameters
fromAttributeBasetoAttributeBase
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
textstring
Returns
TypeDefault()
public override Guid? TypeDefault()
Returns
- Guid?