Table of Contents

Class FeatureCollection

Namespace
The.Model.Features
Assembly
Instagile.Model.dll
public sealed class FeatureCollection : IReadOnlyCollection<IFeature>, IEnumerable<IFeature>, IEnumerable
Inheritance
FeatureCollection
Implements
Inherited Members
Extension Methods

Constructors

FeatureCollection(IEnumerable<IFeature>)

public FeatureCollection(IEnumerable<IFeature> features)

Parameters

features IEnumerable<IFeature>

Fields

CalculationMethods

public readonly IReadOnlyDictionary<Guid, MethodName> CalculationMethods

Field Value

IReadOnlyDictionary<Guid, MethodName>

Columns

public readonly IReadOnlyDictionary<Guid, Column> Columns

Field Value

IReadOnlyDictionary<Guid, Column>

Empty

public static readonly FeatureCollection Empty

Field Value

FeatureCollection

FeaturesByID

public readonly IReadOnlyDictionary<Guid, IFeature> FeaturesByID

Field Value

IReadOnlyDictionary<Guid, IFeature>

FeaturesByName

public readonly IReadOnlyDictionary<string, IFeature> FeaturesByName

Field Value

IReadOnlyDictionary<string, IFeature>

ParameterlessTables

public readonly IImmutableSet<Guid> ParameterlessTables

Field Value

IImmutableSet<Guid>

Relationships

public readonly IReadOnlyDictionary<Guid, Relationship> Relationships

Field Value

IReadOnlyDictionary<Guid, Relationship>

Sections

public readonly IReadOnlyDictionary<Guid, string> Sections

Field Value

IReadOnlyDictionary<Guid, string>

Tables

public readonly IReadOnlyDictionary<Guid, Table> Tables

Field Value

IReadOnlyDictionary<Guid, Table>

WellKnown

public static readonly FeatureCollection WellKnown

Field Value

FeatureCollection

Properties

Count

public int Count { get; }

Property Value

int

Features

public IEnumerable<IFeature> Features { get; }

Property Value

IEnumerable<IFeature>

this[string]

public IFeature this[string name] { get; }

Parameters

name string

Property Value

IFeature

Methods

Add(IFeature, ModelSnapshot, EventFactory)

public IEnumerable<IEvent> Add(IFeature feature, ModelSnapshot snapshot, EventFactory eventFactory)

Parameters

feature IFeature
snapshot ModelSnapshot
eventFactory EventFactory

Returns

IEnumerable<IEvent>

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetEnumerator()

public IEnumerator<IFeature> GetEnumerator()

Returns

IEnumerator<IFeature>

GetHashCode()

public override int GetHashCode()

Returns

int

Remove(IFeature, ModelSnapshot)

public IEnumerable<IEvent> Remove(IFeature feature, ModelSnapshot snapshot)

Parameters

feature IFeature
snapshot ModelSnapshot

Returns

IEnumerable<IEvent>

TryGetTableWithDependencies(Guid, ModelSnapshot, out Table)

public bool TryGetTableWithDependencies(Guid tableID, ModelSnapshot snapshot, out Table table)

Parameters

tableID Guid
snapshot ModelSnapshot
table Table

Returns

bool