CodeLiturgy.Dashboard/BlueWest.Data/Currency/Currency.cs

26 lines
516 B
C#

using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using MapTo;
namespace BlueWest.Data
{
[MapFrom(new []{
typeof(CurrencyUpdate),
typeof(CurrencyCreate),
typeof(CurrencyUnique)
})]
public partial class Currency
{
public int Num { get; set; } // Primary key
[MaxLength(3)] public string Code { get; set; }
public List<Country> Countries { get; set; }
public Currency()
{
}
}
}