18 lines
363 B
C#
18 lines
363 B
C#
using FluentValidation;
|
|
using GerstITS.Validation;
|
|
|
|
namespace GerstITS.Examples.Logic.Shared.Validation;
|
|
|
|
internal sealed class IdValidationRule : ValidationRuleBase<int>
|
|
{
|
|
#region Constructors
|
|
|
|
public IdValidationRule()
|
|
{
|
|
RuleFor(x => x)
|
|
.GreaterThan(0)
|
|
.OverridePropertyName("id");
|
|
}
|
|
|
|
#endregion
|
|
} |