我有以下验证,我无法以任何方式获取stackOverflow。有什么办法吗?
public GridLayoutModelValidator()
{
//some validations
RuleFor(layout => layout.Rows).NotEmpty().SetCollectionValidator(new GridLayoutRowModelValidator());
}
}
public class GridLayoutRowModelValidator : AbstractValidator<GridLayoutRowModel>
{
public GridLayoutRowModelValidator()
{
//some validations
RuleFor(row => row.Modules).Cascade(CascadeMode.Continue).NotEmpty()
.SetCollectionValidator(new GridLayoutModuleDataModelValidator());
}
}
public class GridLayoutModuleDataModelValidator : AbstractValidator<GridLayoutModuleDataModel>
{
public GridLayoutModuleDataModelValidator()
{
//some validations
RuleFor(module => module.Rows).SetCollectionValidator(new GridLayoutRowModelValidator());
}
}