Files
modernkeepass/ModernKeePass.Application/Entry/Commands/UpsertField/UpsertFieldCommandValidator.cs
Geoffroy BONNEVILLE bb2b99ed66 Additional fields Add, Update and Delete work (too well)
SelectableListView works when programmatically setting selection
2020-05-11 10:53:14 +02:00

17 lines
441 B
C#

using FluentValidation;
namespace ModernKeePass.Application.Entry.Commands.UpsertField
{
public class UpsertFieldCommandValidator: AbstractValidator<UpsertFieldCommand>
{
public UpsertFieldCommandValidator()
{
RuleFor(v => v.EntryId)
.NotNull()
.NotEmpty();
RuleFor(v => v.FieldName)
.NotNull()
.NotEmpty();
}
}
}