2020-08-27 16:12:47 +02:00
|
|
|
using zero.Core.Attributes;
|
|
|
|
|
|
|
|
|
|
namespace zero.Core.Entities
|
2020-04-13 12:14:19 +02:00
|
|
|
{
|
2020-05-24 18:23:56 +02:00
|
|
|
public class Country : ZeroEntity, ICountry
|
2020-04-13 12:14:19 +02:00
|
|
|
{
|
2020-05-24 18:23:56 +02:00
|
|
|
/// <inheritdoc />
|
|
|
|
|
public bool IsPreferred { get; set; }
|
2020-05-08 13:22:28 +02:00
|
|
|
|
2020-05-24 18:23:56 +02:00
|
|
|
/// <inheritdoc />
|
|
|
|
|
public string Code { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2020-08-27 16:12:47 +02:00
|
|
|
[Collection("Countries")]
|
2020-11-14 12:34:26 +01:00
|
|
|
public interface ICountry : IZeroEntity, IZeroDbConventions
|
2020-05-24 18:23:56 +02:00
|
|
|
{
|
2020-04-13 12:14:19 +02:00
|
|
|
/// <summary>
|
|
|
|
|
/// Preferred countries are displayed on top in lists
|
|
|
|
|
/// </summary>
|
2020-05-24 18:32:47 +02:00
|
|
|
bool IsPreferred { get; set; }
|
2020-04-13 12:14:19 +02:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Country code (ISO 3166-1)
|
|
|
|
|
/// </summary>
|
2020-05-24 18:32:47 +02:00
|
|
|
string Code { get; set; }
|
2020-04-13 12:14:19 +02:00
|
|
|
}
|
|
|
|
|
}
|