Class EntityView
Encapsulates information about the presentation of a model entity
Implements
Inherited Members
Namespace: TimeCockpit.Data.DataModel
Assembly: TimeCockpit.Data.dll
Syntax
public class EntityView : ModelElement, IDynamicMetaObjectProvider, INotifyPropertyChanged, IDataErrorInfo
Constructors
EntityView()
Initializes a new instance of the EntityView class
Declaration
public EntityView()
EntityView(IEnumerable<KeyValuePair<Object, Object>>)
Initializes a new instance of the EntityView class.
Declaration
public EntityView(IEnumerable<KeyValuePair<object, object>> properties)
Parameters
Type | Name | Description |
---|---|---|
System. |
properties | Collection of properties. |
EntityView(EntityView, ModelEntityBase)
Initializes a new instance of the Entity
Declaration
public EntityView(EntityView element, ModelEntityBase targetEntity)
Parameters
Type | Name | Description |
---|---|---|
Entity |
element | The element to copy. |
Model |
targetEntity | Target entity in the context of copied entity view/model. |
Properties
Configuration
Gets or sets the configuration XAML markup for the given entitv view.
Declaration
public View Configuration { get; set; }
Property Value
Type | Description |
---|---|
View |
ConfigurationMarkup
Gets or sets the configuration markup.
Declaration
public string ConfigurationMarkup { get; set; }
Property Value
Type | Description |
---|---|
System. |
The configuration markup. |
Permissions
Gets the read permissions of the Model
Declaration
public ModelCollection<Permission> Permissions { get; }
Property Value
Type | Description |
---|---|
Model |
TargetEntity
Gets or sets the model entity the entity view is targeting
Declaration
public ModelEntityBase TargetEntity { get; set; }
Property Value
Type | Description |
---|---|
Model |
TypeName
Gets or sets the type name of the model entity
Declaration
public string TypeName { get; set; }
Property Value
Type | Description |
---|---|
System. |
Methods
Accept(ModelElementVisitor)
Accepts a visitor. Dispatches to the Visit(Entity
Declaration
public override void Accept(ModelElementVisitor visitor)
Parameters
Type | Name | Description |
---|---|---|
Model |
visitor | the visitor to dispatch. |
Overrides
Validate(ref IList<PropertyValidationMessage>, Boolean)
Validates a Model
Declaration
protected override void Validate(ref IList<PropertyValidationMessage> messages, bool validateRecursively)
Parameters
Type | Name | Description |
---|---|---|
System. |
messages | An list of strings that stores that picks up the validation errors of a model element. |
System. |
validateRecursively | Indicates wheter to validate only the current model element or all its children (recursively) as well. |
Overrides
Remarks
The rules the Model
When Validate(ref IList<PropertyValidationMessage>, Boolean) is called on a modelelement, the Validate(ref IList<PropertyValidationMessage>, Boolean) method of all children attatched to the modelelemnt are validated recursivly.