|
@ -8,9 +8,9 @@ public class PartCreateDtoValidator : AbstractValidator<PartCreateDto> |
|
|
public PartCreateDtoValidator() |
|
|
public PartCreateDtoValidator() |
|
|
{ |
|
|
{ |
|
|
RuleFor(x => x.Code).MaximumLength(64).NotEmpty(); |
|
|
RuleFor(x => x.Code).MaximumLength(64).NotEmpty(); |
|
|
RuleFor(x => x.Name).MaximumLength(64).NotNull(); |
|
|
RuleFor(x => x.Name).MaximumLength(1024); |
|
|
RuleFor(x => x.Desc1).MaximumLength(1024).NotNull(); |
|
|
RuleFor(x => x.Desc1).MaximumLength(64); |
|
|
RuleFor(x => x.Desc2).MaximumLength(1024); |
|
|
RuleFor(x => x.Desc2).MaximumLength(64); |
|
|
RuleFor(x => x.Status).MaximumLength(64).NotNull(); |
|
|
RuleFor(x => x.Status).MaximumLength(64).NotNull(); |
|
|
RuleFor(x => x.IsMakePart).NotNull(); |
|
|
RuleFor(x => x.IsMakePart).NotNull(); |
|
|
RuleFor(x => x.IsBuyPart).NotNull(); |
|
|
RuleFor(x => x.IsBuyPart).NotNull(); |
|
|