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

26 lines
516 B
C#
Raw Normal View History

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-18 22:59:13 +03:00
public int Num { get; set; } // Primary key
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; }
public Currency()
{
}
}
}