Interface IModel<TModelTypes>
Base implementation of a code factory model. All models will be derived from this base model definition.
Namespace: CodeFactory
Assembly: CodeFactory.dll
Syntax
public interface IModel<TModelTypes> where TModelTypes : struct, IComparable, IFormattable, IConvertible
Type Parameters
Name | Description |
---|---|
TModelTypes | Enumeration of the model types that this model supports. |
Properties
| Improve this Doc View SourceHasErrors
Flag that determines if this model has errors.
Declaration
bool HasErrors { get; }
Property Value
Type | Description |
---|---|
bool |
IsLoaded
Flag that determines if this model was able to load.
Declaration
bool IsLoaded { get; }
Property Value
Type | Description |
---|---|
bool |
ModelErrors
List of all errors that occurred in this model.
Declaration
IReadOnlyList<ModelException<TModelTypes>> ModelErrors { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<ModelException<TModelTypes>> |
ModelType
Determines the type of model that has been loaded.
Declaration
TModelTypes ModelType { get; }
Property Value
Type | Description |
---|---|
TModelTypes |