14 lines
347 B
C#
14 lines
347 B
C#
using FluentValidation;
|
|
|
|
namespace Nitride.Entities;
|
|
|
|
public class CreateOrUpdateIndexValidator : AbstractValidator<CreateOrUpdateIndex>
|
|
{
|
|
public CreateOrUpdateIndexValidator()
|
|
{
|
|
this.RuleFor(x => x.Scanner).NotNull();
|
|
this.RuleFor(x => x.GetIndexKey).NotNull();
|
|
this.RuleFor(x => x.UpdateIndex).NotNull();
|
|
}
|
|
}
|