Class ModelFile
- Namespace
- The.Model
- Assembly
- Instagile.Model.dll
public class ModelFile : VersionedObject
- Inheritance
-
ModelFile
- Inherited Members
-
Constructors
ModelFile(IEnumerable<IEvent>, int?)
public ModelFile(IEnumerable<IEvent> events, int? maxVersion = null)
Parameters
events IEnumerable<IEvent>
maxVersion int?
Fields
EmptyModel
public static readonly IReadOnlyList<IEvent> EmptyModel
Field Value
- IReadOnlyList<IEvent>
FileExtension
public const string FileExtension = "theModel"
Field Value
- string
Properties
CurrentVersion
public static int CurrentVersion { get; }
Property Value
- int
FeatureVersions
public SerialisableFeatureVersionCollection? FeatureVersions { get; set; }
Property Value
- SerialisableFeatureVersionCollection
Features
public FeatureCollection Features { get; set; }
Property Value
- FeatureCollection
History
public SerialisableEventCollection History { get; set; }
Property Value
- SerialisableEventCollection
MinSupportedVersion
public static int MinSupportedVersion { get; }
Property Value
- int
Methods
AfterLoad()
public override void AfterLoad()
BeforeSave()
public override void BeforeSave()
DetectAndUpgradeFeatures()
public void DetectAndUpgradeFeatures()
Equals(object?)
public override bool Equals(object? o)
Parameters
o object
Returns
- bool
GetHashCode()
public override int GetHashCode()
Returns
- int
RequiresUpdate()
public bool RequiresUpdate()
Returns
- bool
ToString()
public override string ToString()
Returns
- string