2022-08-17 23:21:00 +03:00
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
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-18 18:46:20 +03:00
|
|
|
[MapFrom(new []{
|
|
|
|
typeof(CurrencyUpdate),
|
2022-08-19 02:02:57 +03:00
|
|
|
typeof(CurrencyCreate),
|
|
|
|
typeof(CurrencyUnique)
|
|
|
|
})]
|
2022-08-17 23:21:00 +03:00
|
|
|
|
|
|
|
public partial class Currency
|
|
|
|
{
|
2022-08-22 00:14:50 +03:00
|
|
|
public int Id { get; set; }
|
|
|
|
public int Num { get; set; }
|
2022-08-18 18:46:20 +03:00
|
|
|
[MaxLength(3)] public string Code { get; set; }
|
2022-08-17 23:21:00 +03:00
|
|
|
public List<Country> Countries { get; set; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|