Class CustomObjectPropertyValidateLinks
Validates that the custom object class has the correct types for a defined relationship
Inheritance
Inherited Members
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 |