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.
|
|
|
|
using Connected.Annotations;
|
|
|
|
|
using Connected.Data;
|
|
|
|
|
using Connected.Entities.Annotations;
|
|
|
|
|
using Connected.Entities.Consistency;
|
|
|
|
|
using Connected.Globalization.Languages;
|
|
|
|
|
|
|
|
|
|
namespace Common.Globalization;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The implementation of the <see cref="ILanguage"/> entity.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Table(Schema = SchemaAttribute.SysSchema)]
|
|
|
|
|
internal record Language : ConsistentEntity<int>, ILanguage
|
|
|
|
|
{
|
|
|
|
|
public const string CacheKey = $"{SchemaAttribute.SysSchema}.{nameof(Language)}";
|
|
|
|
|
|
|
|
|
|
[Length(128)]
|
|
|
|
|
[Ordinal(0)]
|
|
|
|
|
public string? Name { get; init; }
|
|
|
|
|
|
|
|
|
|
[Ordinal(1)]
|
|
|
|
|
public int Lcid { get; init; }
|
|
|
|
|
|
|
|
|
|
[Default(Status.Enabled)]
|
|
|
|
|
[Ordinal(2)]
|
|
|
|
|
public Status Status { get; init; }
|
|
|
|
|
|
|
|
|
|
[Length(128)]
|
|
|
|
|
[Ordinal(3)]
|
|
|
|
|
public string? Mappings { get; init; }
|
|
|
|
|
}
|