Class ValidationAnnotationConstructor
A validation annotation constructor.
Inheritance
System.Object
NamedElementConstructorBase<ValidationAnnotation, IAnnotation, System.ComponentModel.DataAnnotations.ValidationAttribute>
AnnotationConstructorBase<ValidationAnnotation, System.ComponentModel.DataAnnotations.ValidationAttribute>
ValidationAnnotationConstructor
Implements
IRuntimeModelElementConstructor<ValidationAnnotation, IAnnotation, System.ComponentModel.DataAnnotations.ValidationAttribute>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Data.Model.Runtime.Construction.Annotations
Assembly: Kephas.Data.Model.dll
Syntax
public class ValidationAnnotationConstructor : AnnotationConstructorBase<ValidationAnnotation, ValidationAttribute>, IRuntimeModelElementConstructor<ValidationAnnotation, IAnnotation, ValidationAttribute>, IRuntimeModelElementConstructor
Methods
| Improve this Doc View SourceTryCreateModelElementCore(IModelConstructionContext, ValidationAttribute)
Core implementation of trying to get the element information.
Declaration
protected override ValidationAnnotation TryCreateModelElementCore(IModelConstructionContext constructionContext, ValidationAttribute runtimeElement)
Parameters
Type | Name | Description |
---|---|---|
IModelConstructionContext | constructionContext | Context for the construction. |
System.ComponentModel.DataAnnotations.ValidationAttribute | runtimeElement | The runtime element. |
Returns
Type | Description |
---|---|
ValidationAnnotation | A new element information based on the provided runtime element information, or |
Overrides
Kephas.Model.Runtime.Construction.NamedElementConstructorBase<Kephas.Data.Model.Elements.Annotations.ValidationAnnotation, Kephas.Model.IAnnotation, System.ComponentModel.DataAnnotations.ValidationAttribute>.TryCreateModelElementCore(Kephas.Model.Construction.IModelConstructionContext, System.ComponentModel.DataAnnotations.ValidationAttribute)