Table of Contents

Struct DocumentFeature

Namespace
The.Model.Features
Assembly
Instagile.Model.dll
public readonly struct DocumentFeature : IFeature
Implements
Inherited Members
Extension Methods

Fields

DISPLAY_NAME

public const string DISPLAY_NAME = "Document storage"

Field Value

string

DataColumn

public static readonly Guid DataColumn

Field Value

Guid

FileSizeColumn

public static readonly Guid FileSizeColumn

Field Value

Guid

ImageHeightColumn

public static readonly Guid ImageHeightColumn

Field Value

Guid

ImageSection

public static readonly Guid ImageSection

Field Value

Guid

ImageWidthColumn

public static readonly Guid ImageWidthColumn

Field Value

Guid

MimeTypeColumn

public static readonly Guid MimeTypeColumn

Field Value

Guid

OriginalFilenameColumn

public static readonly Guid OriginalFilenameColumn

Field Value

Guid

StoredDocumentInterface

public static readonly TypeName StoredDocumentInterface

Field Value

TypeName

StoredDocumentTable

public static readonly Guid StoredDocumentTable

Field Value

Guid

ThumbnailsRelationship

public static readonly Guid ThumbnailsRelationship

Field Value

Guid

ThumbnailsSection

public static readonly Guid ThumbnailsSection

Field Value

Guid

Properties

CalculationMethods

Map of attribute ID (or entity ID for IEntity.Text) to a record containing the name of the method used to calculate that attribute's value and its calculation dependencies.

public IReadOnlyDictionary<Guid, string> CalculationMethods { get; }

Property Value

IReadOnlyDictionary<Guid, string>

Remarks

Features whose CalculationProvider can be loaded by the template runner can use standard CalculationDependency attributes instead of having to specify them here.

CalculationProvider

Name of a type that provides static methods to implement calculated properties.

public TypeName? CalculationProvider { get; }

Property Value

TypeName?

CurrentVersion

public int CurrentVersion { get; }

Property Value

int

Dependencies

public IEnumerable<string> Dependencies { get; }

Property Value

IEnumerable<string>

DisplayName

public string DisplayName { get; }

Property Value

string

EditorDoc

public string EditorDoc { get; }

Property Value

string

FirstVersionTables

public IEnumerable<Guid> FirstVersionTables { get; }

Property Value

IEnumerable<Guid>

Name

public string Name { get; }

Property Value

string

Relationships

public IReadOnlyDictionary<Guid, Relationship> Relationships { get; }

Property Value

IReadOnlyDictionary<Guid, Relationship>

ScreenBehaviourProvider

Name of a type that provides static methods to override WPF screen behaviour.

public TypeName? ScreenBehaviourProvider { get; }

Property Value

TypeName?

Tables

public IReadOnlyDictionary<Guid, Table> Tables { get; }

Property Value

IReadOnlyDictionary<Guid, Table>

Methods

Add(ModelSnapshot, EventFactory)

public IEnumerable<IEvent> Add(ModelSnapshot snapshot, EventFactory factory)

Parameters

snapshot ModelSnapshot
factory EventFactory

Returns

IEnumerable<IEvent>

UpgradeFrom(int, EventFactory)

public IEnumerable<IEvent> UpgradeFrom(int oldVersion, EventFactory factory)

Parameters

oldVersion int
factory EventFactory

Returns

IEnumerable<IEvent>