42 lines
968 B
C#
42 lines
968 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Text.Json.Serialization;
|
|
using MapTo;
|
|
|
|
namespace BlueWest.Data
|
|
{
|
|
[MapFrom(new []
|
|
{
|
|
typeof(CountryUpdate),
|
|
typeof(CountryCreate),
|
|
typeof(CountryUnique)
|
|
})]
|
|
|
|
public partial class Country
|
|
{
|
|
public int Id { get; set; }
|
|
/// <summary>
|
|
/// ISO 3166-1 numeric code
|
|
/// </summary>
|
|
public int Code { get; set; }
|
|
|
|
public string Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// ISO 3166-1 State Name
|
|
/// </summary>
|
|
public string StateName { get; set; }
|
|
|
|
[MaxLength(2)] public string Alpha2Code { get; set; }
|
|
public string TLD { get; set; }
|
|
|
|
public List<Currency> Currencies { get; set; }
|
|
public List<User> Users { get; set; }
|
|
|
|
public DateTime CreationDate { get; set; }
|
|
|
|
}
|
|
}
|
|
|