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/Connected.Common.Notes/NoteText.cs

21 lines
658 B

2 years ago
using System.ComponentModel.DataAnnotations;
using Connected.Annotations;
using Connected.Entities.Annotations;
using Connected.ServiceModel.Annotations;
using Connected.ServiceModel.Data;
2 years ago
namespace Connected.Common.Notes;
2 years ago
public sealed record NoteText : TableEntity<long, string>, INoteText
{
public const string EntityKey = $"{Constants.CommonSchema}.{nameof(NoteText)}";
[Ordinal(-50000), PartitionKey, MaxLength(128)]
public string Entity { get; init; } = default!;
[Ordinal(-49000), PrimaryKey, MaxLength(128)]
public string EntityId { get; init; } = default!;
[Ordinal(0), Length(Units.MB), Nullable]
public string? Text { get; init; }
}