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.
23 lines
524 B
23 lines
524 B
using Connected.Data;
|
|
using Connected.Entities.Annotations;
|
|
using Connected.Entities.Consistency;
|
|
|
|
namespace Common.Types.Countries;
|
|
|
|
[Table(Schema = SchemaAttribute.TypesSchema)]
|
|
internal record Country : ConsistentEntity<int>, ICountry
|
|
{
|
|
public const string CacheKey = $"{SchemaAttribute.TypesSchema}.{nameof(Country)}";
|
|
|
|
[Length(128)]
|
|
public string Name { get; init; }
|
|
|
|
public int Lcid { get; init; }
|
|
|
|
[Length(128)]
|
|
public string IsoCode { get; init; }
|
|
|
|
|
|
public Status Status { get; init; } = Status.Enabled;
|
|
}
|