Table of Contents

Class EntityView

Namespace
TimeCockpit.Data.DataModel
Assembly
TimeCockpit.Data.dll

Encapsulates information about the presentation of a model entity

public class EntityView : ModelElement, IDynamicMetaObjectProvider, INotifyPropertyChanged, IDataErrorInfo
Inheritance
Object
EntityView
Implements
IDynamicMetaObjectProvider
INotifyPropertyChanged
IDataErrorInfo
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()

Constructors

EntityView()

Initializes a new instance of the EntityView class

public EntityView()

EntityView(IEnumerable<KeyValuePair<Object, Object>>)

Initializes a new instance of the EntityView class.

public EntityView(IEnumerable<KeyValuePair<object, object>> properties)

Parameters

properties IEnumerable<KeyValuePair<Object, Object>>

Collection of properties.

EntityView(EntityView, ModelEntityBase)

Initializes a new instance of the EntityView class.

public EntityView(EntityView element, ModelEntityBase targetEntity)

Parameters

element EntityView

The element to copy.

targetEntity ModelEntityBase

Target entity in the context of copied entity view/model.

Properties

Configuration

Gets or sets the configuration XAML markup for the given entitv view.

public View Configuration { get; set; }

Property Value

View

ConfigurationMarkup

Gets or sets the configuration markup.

public string ConfigurationMarkup { get; set; }

Property Value

String

The configuration markup.

Permissions

Gets the read permissions of the ModelEntityBase

public ModelCollection<Permission> Permissions { get; }

Property Value

ModelCollection<Permission>

TargetEntity

Gets or sets the model entity the entity view is targeting

public ModelEntityBase TargetEntity { get; set; }

Property Value

ModelEntityBase

TypeName

Gets or sets the type name of the model entity

public string TypeName { get; set; }

Property Value

String

Methods

Accept(ModelElementVisitor)

Accepts a visitor. Dispatches to the Visit(EntityView) override.

public override void Accept(ModelElementVisitor visitor)

Parameters

visitor ModelElementVisitor

the visitor to dispatch.

Validate(ref IList<PropertyValidationMessage>, Boolean)

Validates a ModelElement according to certain rules.

protected override void Validate(ref IList<PropertyValidationMessage> messages, bool validateRecursively)

Parameters

messages IList<PropertyValidationMessage>

An list of strings that stores that picks up the validation errors of a model element.

validateRecursively Boolean

Indicates wheter to validate only the current model element or all its children (recursively) as well.

Remarks

The rules the ModelElement is validated against are dependent on the type of ModelElement that is validated. This method can be overridden to provide custom validation behavior for subclasses of ModelElement

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.