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
-
ObjectEntityView
- Implements
-
IDynamicMetaObjectProviderINotifyPropertyChangedIDataErrorInfo
- 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
propertiesIEnumerable<KeyValuePair<Object, Object>>Collection of properties.
EntityView(EntityView, ModelEntityBase)
Initializes a new instance of the EntityView class.
public EntityView(EntityView element, ModelEntityBase targetEntity)
Parameters
elementEntityViewThe element to copy.
targetEntityModelEntityBaseTarget 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
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
TargetEntity
Gets or sets the model entity the entity view is targeting
public ModelEntityBase TargetEntity { get; set; }
Property Value
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
visitorModelElementVisitorthe 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
messagesIList<PropertyValidationMessage>An list of strings that stores that picks up the validation errors of a model element.
validateRecursivelyBooleanIndicates 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.