This repository has been archived on 2023-02-02. You can view files and clone it, but cannot push or open issues or pull requests.
mfgames-nitride-cil/src/MfGames.Nitride/Entities/CreateOrUpdateIndexValidator.cs
D. Moonfire 9e93eb6ce6 refactor!: fixed missed namespaces
- reformatted code and cleaned up references
2023-01-14 18:19:42 -06:00

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();
}
}