You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Connected.Common.Types/Connected.Common.Types.Model/MeasureUnits/MeasureUnitArgs.cs

28 lines
558 B

using System.ComponentModel.DataAnnotations;
using Connected.Data;
using Connected.ServiceModel;
namespace Connected.Common.Types.MeasureUnits;
public class MeasureUnitInsertArgs : Dto
{
[Required]
[MaxLength(128)]
public string? Name { get; set; }
[Required]
[MaxLength(8)]
public string? Code { get; set; }
[Range(0, 32)]
public byte Precision { get; set; }
public Status Status { get; set; } = Status.Enabled;
}
public sealed class MeasureUnitUpdateArgs : MeasureUnitInsertArgs
{
[Range(1, int.MaxValue)]
public int Id { get; set; }
}