using FluentValidation; namespace MfGames.Nitride.Entities; public class CreateOrUpdateIndexValidator : AbstractValidator { public CreateOrUpdateIndexValidator() { this.RuleFor(x => x.Scanner) .NotNull(); this.RuleFor(x => x.GetIndexKey) .NotNull(); this.RuleFor(x => x.UpdateIndex) .NotNull(); } }