Files
mixtape/zero.Core/Entities/Country.cs
T
2020-10-05 15:10:40 +02:00

29 lines
603 B
C#

using zero.Core.Attributes;
namespace zero.Core.Entities
{
public class Country : ZeroEntity, ICountry
{
/// <inheritdoc />
public bool IsPreferred { get; set; }
/// <inheritdoc />
public string Code { get; set; }
}
[Collection("Countries")]
public interface ICountry : IZeroEntity, IAppAwareShareableEntity, IZeroDbConventions
{
/// <summary>
/// Preferred countries are displayed on top in lists
/// </summary>
bool IsPreferred { get; set; }
/// <summary>
/// Country code (ISO 3166-1)
/// </summary>
string Code { get; set; }
}
}