hi
For blazor
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
var results = new List<ValidationResult>();
// This is not working when using EditContext !!!
var l = validationContext.GetService<IStringLocalizer<Abp4146Resource>>();
if (l != null)
{
var errorMessage = l["Test:ValidationMessage"].Value;
// Do some validation
results.Add(new ValidationResult(errorMessage, new[] { nameof(DocumentValidation) }));
}
return results;
}
: )
Didn't change anything
I just download your GitHub repo and run three projects.
hi
Can you share a project to reproduce the problem? liming.ma@volosoft.com
hi
The error occurs in the DashboardAppService class on the below highlighted line
Can you share the error first?
https://support.abp.io/QA/Questions/4143#answer-9446240b-da3b-384d-04dc-3a07e40aa2bd