Table of Contents

Struct ApplicationSettingsFeature

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

Fields

ApplicationSettingsInterface

public static readonly TypeName ApplicationSettingsInterface

Field Value

TypeName

ApplicationSettingsTable

public static readonly Guid ApplicationSettingsTable

Field Value

Guid

DISPLAY_NAME

public const string DISPLAY_NAME = "Application settings"

Field Value

string

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>