15 lines
416 B
C#
15 lines
416 B
C#
using FluentValidation;
|
|
|
|
namespace Nitride.Entities;
|
|
|
|
public class CreateIndexEntitiesValidator<TIndexKey> : AbstractValidator<CreateIndexEntities<TIndexKey>>
|
|
where TIndexKey : notnull
|
|
{
|
|
public CreateIndexEntitiesValidator()
|
|
{
|
|
this.RuleFor(x => x.CreateIndexEntity).NotNull();
|
|
this.RuleFor(x => x.GetIndexKeys).NotNull();
|
|
this.RuleFor(x => x.UpdateIndexEntity).NotNull();
|
|
}
|
|
}
|