Class CustomObjectPropertyValidateLinks
Validates that the custom object class has the correct types for a defined relationship
Inherited Members
Namespace: LemonEdge.API.Entities.Design
Assembly: LemonEdge.API.dll
Syntax
public static class CustomObjectPropertyValidateLinks
Methods
IsExtendedTypeValid(ICustomObjectProperty, IEntityRetriever)
Returns true if this relationship extending a type is valid - only one is allowed per custom entity
Declaration
public static Task<bool> IsExtendedTypeValid(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 |
---|---|
Task<bool> | True if this relationship extending a type is valid - only one is allowed per custom entity |
IsNullableValid(ICustomObjectProperty, IEntityRetriever)
Declaration
public static Task<bool> IsNullableValid(ICustomObjectProperty prop, IEntityRetriever cn)
Parameters
Type | Name | Description |
---|---|---|
ICustomObjectProperty | prop | |
IEntityRetriever | cn |
Returns
Type | Description |
---|---|
Task<bool> |
IsPermissionValid(ICustomObjectProperty, IEntityRetriever)
Returns true if this permission is valid - only one is allowed per custom entity
Declaration
public static Task<bool> IsPermissionValid(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 |
---|---|
Task<bool> | True if this relationship permission - only one is allowed per custom entity |
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 |
---|---|
Task<bool> | 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 |
---|---|
bool | True if the property type and sql types are compatible and valid |
IsRelationshipValid(ICustomObjectProperty, IEntityRetriever)
Validates that the custom object class has the correct types for a defined relationship
Declaration
public static Task<bool> IsRelationshipValid(ICustomObjectProperty obj, IEntityRetriever cn)
Parameters
Type | Name | Description |
---|---|---|
ICustomObjectProperty | obj | The cusom object property to validate |
IEntityRetriever | cn |
Returns
Type | Description |
---|---|
Task<bool> | That the custom object class has the correct types for a defined relationship |