Search Results for

    Show / Hide Table of Contents

    Class ValidationContextFactory

    Inheritance
    object
    ValidationContextFactory
    Implements
    IValidationContextFactory
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: LemonEdge.API.Core.Tasks
    Assembly: LemonEdge.API.dll
    Syntax
    public class ValidationContextFactory : IValidationContextFactory

    Constructors

    ValidationContextFactory(IServiceProvider)

    Construct a ValidationContextFactory with the serviceProvider IServiceProvider to be made available in the ValidationContext used by the Validator for validating objects.

    Declaration
    public ValidationContextFactory(IServiceProvider serviceProvider)
    Parameters
    Type Name Description
    IServiceProvider serviceProvider

    Methods

    Create(IBaseEntity, Dictionary<object, object>)

    Creates a ValidationContext for use when validating objects with the Validator

    Declaration
    public ValidationContext Create(IBaseEntity item, Dictionary<object, object> contextItems)
    Parameters
    Type Name Description
    IBaseEntity item

    The IBaseEntity to be validated,

    Dictionary<object, object> contextItems

    A set of key/value pairs to make available to consumers of the ValidationContext

    Returns
    Type Description
    ValidationContext

    Implements

    IValidationContextFactory

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.