Currency.cs
911 bytes
| 1 | using System.ComponentModel.DataAnnotations; |
|---|---|
| 2 | using Base.Domain; |
| 3 | |
| 4 | namespace App.Domain; |
| 5 | |
| 6 | public class Currency : BaseEntity |
| 7 | { |
| 8 | [MaxLength(3, ErrorMessageResourceType = typeof(App.Resources.Common), ErrorMessageResourceName = "ErrorMaxLength")] |
| 9 | [Display(Name = nameof(Code), ResourceType = typeof(App.Resources.Domain.Currency))] |
| 10 | public string Code { get; set; } = default!; |
| 11 | |
| 12 | [MaxLength(100, ErrorMessageResourceType = typeof(App.Resources.Common), ErrorMessageResourceName = "ErrorMaxLength")] |
| 13 | [Display(Name = nameof(Name), ResourceType = typeof(App.Resources.Domain.Currency))] |
| 14 | public LangStr Name { get; set; } = new(); |
| 15 | |
| 16 | [MaxLength(10, ErrorMessageResourceType = typeof(App.Resources.Common), ErrorMessageResourceName = "ErrorMaxLength")] |
| 17 | [Display(Name = nameof(Symbol), ResourceType = typeof(App.Resources.Domain.Currency))] |
| 18 | public string Symbol { get; set; } = default!; |
| 19 | } |
| 20 | |