Skip to Main Content
Customer Feedback

We love feedback from you on our products and the problems in your daily work that you would like us to solve. Please describe the challenge you're encountering and your desired outcome. Be as detailed as possible.

For technical issues or bugs please head to Support or our Developer Community. You can assign up to 20 votes in total. Thank you for your feedback.

Status explanation: 'Future Consideration' = Continuing to collect further feedback, not planned at this time. 'Investigating' = Prioritized for deeper customer and feasibility investigations ahead of planning development.

Categories Customer Services
Created by Guest
Created on Oct 21, 2024

Support IValidate<> for Meta classes

It would be great if MetaClasses (e.g. CustomerContact) support IValidate<>validation.


It would allow to write code like this



public class CustomerContactValidator : IValidate<CustomerContact>
{
public IEnumerable<ValidationError> Validate(CustomerContact instance)
{
if (string.IsNullOrEmpty(instance.Email))
{
yield return new ValidationError
{
ErrorMessage = "Email is required.",
PropertyName = nameof(instance.Email),
Severity = ValidationErrorSeverity.Error,
ValidationType = ValidationErrorType.PropertyValidation
};
}
}
}