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