Search Results for

    Show / Hide Table of Contents

    Interface ICustomValidation

    Inherited Members
    ISetCopier.GetCopyInfo(IEntityUpdater)
    IHasFolderStructure.FolderID
    IBaseEntity.GetLabel(string)
    IBaseEntity.SetLabel(string, string)
    IBaseEntity.SetSilentLabel(string, string)
    IBaseEntity.AccountID
    IBaseEntity.ID
    IBaseEntity.LastUpdated
    IBaseEntity.ModifiedByUserID
    IBaseEntity.CanvasID
    IBaseEntity.AlgorithmStepID
    IBaseEntity.SafeID
    IEquatable<IBaseEntity>.Equals(IBaseEntity)
    INotifyPropertyChanged.PropertyChanged
    INotifyPropertyChanging.PropertyChanging
    ICloneableAsync.Clone(object)
    ICloneableAsync.CopyFromSource(object)
    ICanTrackProperties.HasTrackedPropertyChanged(string)
    ICanTrackProperties.OriginalTrackedPropertyValue(string)
    ICanTrackProperties.OriginalTrackedPropertyValue<T>(string)
    ICanTrackProperties.ClearTrackedOriginalValues()
    ICanTrackProperties.GetAllOriginalTrackedPropertyValues()
    Namespace: LemonEdge.API.Entities.Design
    Assembly: LemonEdge.API.dll
    Syntax
    [EntityDefinition(EntityID.CustomValidation, "dbo.LT_CustomValidations", "CustomValidation", IsStandingDataEntity = true, LabelColumn = "Name")]
    [DefaultEntityIcon(ImageType.Warning)]
    public interface ICustomValidation : IBaseEntityWithPermissions, ISetCopier, IHasFolderStructure, IBaseEntity, IEquatable<IBaseEntity>, INotifyPropertyChanged, INotifyPropertyChanging, ICloneableAsync, ICanTrackProperties

    Properties

    ContextType

    The type of item to to use as the formula context

    Declaration
    [EntityProperty(SQLType.NVarChar, 2000, true)]
    [EntityDescription("The type of item to to use as the formula context.")]
    string ContextType { get; set; }
    Property Value
    Type Description
    string

    EntityTypeID

    [Key] Indicates what entity you want to provide validation for

    Declaration
    [EntityProperty(SQLType.UniqueIdentifier, false, IsEntityTypeLink = true)]
    [RequiredNoDefaultIDValidation]
    [EntityDescription("Indicates what entity you want to provide validation for")]
    Guid EntityTypeID { get; set; }
    Property Value
    Type Description
    Guid

    IsEnabled

    Indicates if the validation is currently enforced throughout the platform, and through which methods

    Declaration
    [EntityProperty(SQLType.SmallInt, false, "1")]
    [EntityDescription("Indicates if the validation is currently enforced throughout the platform, and through which methods")]
    CustomValidationTrigger IsEnabled { get; set; }
    Property Value
    Type Description
    CustomValidationTrigger

    Name

    Declaration
    [EntityProperty(SQLType.NVarChar, 500, false, "''")]
    [EntityKeyProperty]
    [Unique]
    string Name { get; set; }
    Property Value
    Type Description
    string

    Sequence

    Holds the the order this validation is evaluated in within the context of other validations.

    Declaration
    [EntityProperty(SQLType.SmallInt, false, "1")]
    [EntityDescription("Holds the the order this validation is evaluated in within the context of other validations.")]
    [EntitySequence]
    short Sequence { get; set; }
    Property Value
    Type Description
    short

    Type

    Indicates when the validation will be checked

    Declaration
    [EntityProperty(SQLType.SmallInt, false, "1")]
    [RequiredNoDefaultIDValidation]
    [EntityDescription("Indicates the formula that is parsed an applied against any instance of the specified entitytype when saving changes.")]
    CustomValidationType Type { get; set; }
    Property Value
    Type Description
    CustomValidationType

    ValidationFormula

    The formula that is parsed and applied against any instance of the specified entitytype when saving changes. Returns true if valid.

    Declaration
    [EntityProperty(SQLType.NVarChar, false)]
    [RequiredNoDefaultIDValidation]
    [EntityDescription("The formula that is parsed and applied against any instance of the specified entitytype when saving changes. Returns true if valid.")]
    string ValidationFormula { get; set; }
    Property Value
    Type Description
    string

    ValidationMessage

    If the validation fails returning false, this is the message displayed. You can use {} to wrap property values in the message.

    Declaration
    [EntityProperty(SQLType.NVarChar, false, "''")]
    [RequiredNoDefaultIDValidation]
    [EntityDescription("If the validation fails returning false, this is the message displayed. You can use {} to wrap property values in the message.")]
    string ValidationMessage { get; set; }
    Property Value
    Type Description
    string

    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.