23 lines
584 B
C#
23 lines
584 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Elwig.Models {
|
|
[Table("country"), PrimaryKey("Alpha2")]
|
|
public class Country {
|
|
[Column("alpha2")]
|
|
public string Alpha2 { get; private set; }
|
|
|
|
[Column("alpha3")]
|
|
public string Alpha3 { get; private set; }
|
|
|
|
[Column("num")]
|
|
public int Num { get; private set; }
|
|
|
|
[Column("name")]
|
|
public string Name { get; private set; }
|
|
|
|
[Column("is_visible")]
|
|
public bool IsVisible { get; private set; }
|
|
}
|
|
}
|