Class EntityValidationBehavior
An entity validation behavior using the model space classifier, if applicable, for validating the entity using annotations.
Inheritance
System.Object
DataBehaviorBase<System.Object>
DataAnnotationsBehaviorBase<System.Object>
EntityValidationBehavior
Implements
IDataBehavior<System.Object>
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.Behaviors
Assembly: Kephas.Data.Model.dll
Syntax
[ProcessingPriority(Priority.High)]
public class EntityValidationBehavior : DataAnnotationsBehaviorBase<object>, ILoggable, IDataBehavior<object>, IDataBehavior, IOnPersistBehavior, IOnInitializeBehavior, IOnValidateBehavior
Constructors
| Improve this Doc View SourceEntityValidationBehavior(IModelSpaceProvider)
Initializes a new instance of the EntityValidationBehavior class.
Declaration
public EntityValidationBehavior(IModelSpaceProvider modelSpaceProvider)
Parameters
Type | Name | Description |
---|---|---|
IModelSpaceProvider | modelSpaceProvider | The model space provider. |
Methods
| Improve this Doc View SourceCreateValidationFn(ITypeInfo)
Creates the validation function.
Declaration
protected override Func<object, IEntityEntry, IDataOperationContext, IDataValidationResult> CreateValidationFn(ITypeInfo typeInfo)
Parameters
Type | Name | Description |
---|---|---|
ITypeInfo | typeInfo | Information describing the type. |
Returns
Type | Description |
---|---|
System.Func<System.Object, IEntityEntry, IDataOperationContext, IDataValidationResult> | The new validation function. |
Overrides
Kephas.Data.Behaviors.DataAnnotationsBehaviorBase<System.Object>.CreateValidationFn(Kephas.Reflection.ITypeInfo)