Search Results for

    Show / Hide Table of Contents

    Class CustomObjectPropertyValidateLinks

    Validates that the custom object class has the correct types for a defined relationship

    Inheritance
    System.Object
    CustomObjectPropertyValidateLinks
    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: LemonEdge.API.Entities
    Assembly: API.dll
    Syntax
    public static class CustomObjectPropertyValidateLinks

    Methods

    IsPropertyNameValid(ICustomObjectProperty, IEntityRetriever)

    Returns true if the property name is valid. Excludes names such as the custom object entity name itself, and other invalid names

    Declaration
    public static Task<bool> IsPropertyNameValid(ICustomObjectProperty prop, IEntityRetriever cn)
    Parameters
    Type Name Description
    ICustomObjectProperty prop

    The property to verify the PropertyName of

    IEntityRetriever cn

    A context for checking the database with

    Returns
    Type Description
    System.Threading.Tasks.Task<System.Boolean>

    True if the property name is valid. Excludes names such as the custom object entity name itself, and other invalid names

    IsPropertyTypeValid(ICustomObjectProperty)

    Returns true if the property type and sql types are compatible and valid

    Declaration
    public static bool IsPropertyTypeValid(ICustomObjectProperty prop)
    Parameters
    Type Name Description
    ICustomObjectProperty prop

    The property to verify the PropertyName of

    Returns
    Type Description
    System.Boolean

    True if the property type and sql types are compatible and valid

    IsRelationshipValid(ICustomObjectProperty)

    Validates that the custom object class has the correct types for a defined relationship

    Declaration
    public static bool IsRelationshipValid(ICustomObjectProperty obj)
    Parameters
    Type Name Description
    ICustomObjectProperty obj

    The cusom object property to validate

    Returns
    Type Description
    System.Boolean

    That the custom object class has the correct types for a defined relationship

    In This Article
    Back to top © LemonTree Software Ltd. All rights reserved.