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/Common.Numbering/Numbering.cs

16 lines
525 B

2 years ago
using Connected.Annotations;
using Connected.Entities.Annotations;
using Connected.Entities.Consistency;
using System.ComponentModel.DataAnnotations;
namespace Common.Numbering;
[Table(Schema = CommonSchemas.CommonSchema)]
internal sealed record Numbering : ConsistentEntity<int>, INumbering
{
[Ordinal(0), MaxLength(128), Index(Name = $"ui_{CommonSchemas.CommonSchema}_numbering_entity")]
public string Entity { get; init; } = default!;
[Ordinal(1), MaxLength(128)]
public string Value { get; init; } = default!;
}