32 lines
665 B
C#
32 lines
665 B
C#
using zero.Core.Attributes;
|
|
|
|
namespace zero.Core.Entities
|
|
{
|
|
public class Country : ZeroEntity, ICountry
|
|
{
|
|
/// <inheritdoc />
|
|
public string AppId { get; set; }
|
|
|
|
/// <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; }
|
|
}
|
|
}
|