CodeLiturgy.Dashboard/CodeLiturgy.Data.Capital/Capital/Country/Country.cs

41 lines
913 B
C#
Raw Normal View History

2022-09-10 07:12:03 +03:00
using System;
2022-08-17 23:21:00 +03:00
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
2022-08-18 22:59:13 +03:00
using System.Text.Json.Serialization;
2022-08-17 23:21:00 +03:00
using MapTo;
2022-08-13 05:59:37 +03:00
2022-08-17 23:21:00 +03:00
namespace BlueWest.Data
2022-08-13 05:59:37 +03:00
{
2022-08-19 02:02:57 +03:00
[MapFrom(new []
{
typeof(CountryUpdate),
typeof(CountryCreate),
typeof(CountryUnique)
})]
2022-08-17 23:21:00 +03:00
public partial class Country
2022-08-13 20:15:43 +03:00
{
2022-08-22 00:14:50 +03:00
public int Id { get; set; }
2022-08-19 06:18:50 +03:00
/// <summary>
/// ISO 3166-1 numeric code
/// </summary>
public int Code { get; set; }
2022-08-22 00:14:50 +03:00
public string Name { get; set; }
2022-08-19 06:18:50 +03:00
/// <summary>
/// ISO 3166-1 State Name
/// </summary>
2022-08-17 23:21:00 +03:00
public string StateName { get; set; }
2022-08-13 20:15:43 +03:00
2022-08-17 23:21:00 +03:00
[MaxLength(2)] public string Alpha2Code { get; set; }
public string TLD { get; set; }
2022-08-19 06:18:50 +03:00
public List<User> Users { get; set; }
2022-08-22 02:51:45 +03:00
2022-09-10 07:12:03 +03:00
public DateTime CreationDate { get; set; }
2022-08-17 23:21:00 +03:00
}
}