Show / Hide Table of Contents

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>
IRuntimeModelElementConstructor
Inherited Members
AnnotationConstructorBase<ValidationAnnotation, ValidationAttribute>.AnnotationDiscriminator
AnnotationConstructorBase<ValidationAnnotation, ValidationAttribute>.ElementNameDiscriminator
AnnotationConstructorBase<ValidationAnnotation, ValidationAttribute>.TryComputeNameCore(Object)
AnnotationConstructorBase<ValidationAnnotation, ValidationAttribute>.ConstructModelElementContent(IModelConstructionContext, ValidationAttribute, ValidationAnnotation)
NamedElementConstructorBase<ValidationAnnotation, IAnnotation, ValidationAttribute>.ElementNameDiscriminator
NamedElementConstructorBase<ValidationAnnotation, IAnnotation, ValidationAttribute>.TryCreateModelElement(IModelConstructionContext, Object)
NamedElementConstructorBase<ValidationAnnotation, IAnnotation, ValidationAttribute>.TryComputeName(IModelConstructionContext, Object)
NamedElementConstructorBase<ValidationAnnotation, IAnnotation, ValidationAttribute>.CanCreateModelElement(IModelConstructionContext, ValidationAttribute)
NamedElementConstructorBase<ValidationAnnotation, IAnnotation, ValidationAttribute>.TryCreateModelElementCore(IModelConstructionContext, ValidationAttribute)
NamedElementConstructorBase<ValidationAnnotation, IAnnotation, ValidationAttribute>.ConstructModelElementContent(IModelConstructionContext, ValidationAttribute, ValidationAnnotation)
NamedElementConstructorBase<ValidationAnnotation, IAnnotation, ValidationAttribute>.TryComputeNameCore(Object)
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 Source

TryCreateModelElementCore(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 null if the runtime element information is not supported.

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)

Implements

IRuntimeModelElementConstructor<TModel, TModelContract, TRuntime>
IRuntimeModelElementConstructor

Extension Methods

DynamicObjectExtensions.SetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.GetPropertyValue(Object, String)
DynamicObjectExtensions.TryGetPropertyValue(Object, String, out Object)
DynamicObjectExtensions.GetRuntimeTypeInfo(Object)
DynamicObjectExtensions.ToDynamic(Object)
DynamicObjectExtensions.ToExpando(Object)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX