20 lines
400 B
C#
20 lines
400 B
C#
using FluentValidation;
|
|
|
|
namespace MfGames.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();
|
|
}
|
|
}
|