Table of Contents

Interface IFeature

Namespace
The.Model.Features
Assembly
Instagile.Model.dll
public interface IFeature
Extension Methods

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.

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.

TypeName? CalculationProvider { get; }

Property Value

TypeName?

CurrentVersion

int CurrentVersion { get; }

Property Value

int

Dependencies

IEnumerable<string> Dependencies { get; }

Property Value

IEnumerable<string>

DisplayName

string DisplayName { get; }

Property Value

string

EditorDoc

string EditorDoc { get; }

Property Value

string

FirstVersionTables

IEnumerable<Guid> FirstVersionTables { get; }

Property Value

IEnumerable<Guid>

Name

string Name { get; }

Property Value

string

Relationships

IReadOnlyDictionary<Guid, Relationship> Relationships { get; }

Property Value

IReadOnlyDictionary<Guid, Relationship>

ScreenBehaviourProvider

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

TypeName? ScreenBehaviourProvider { get; }

Property Value

TypeName?

Tables

IReadOnlyDictionary<Guid, Table> Tables { get; }

Property Value

IReadOnlyDictionary<Guid, Table>

Methods

Add(ModelSnapshot, EventFactory)

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

Parameters

snapshot ModelSnapshot
factory EventFactory

Returns

IEnumerable<IEvent>

UpgradeFrom(int, EventFactory)

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

Parameters

oldVersion int
factory EventFactory

Returns

IEnumerable<IEvent>