BudgetCategory.cs
970 bytes
| 1 | using System.ComponentModel.DataAnnotations; |
|---|---|
| 2 | using Base.Domain; |
| 3 | |
| 4 | namespace App.Domain; |
| 5 | |
| 6 | public class BudgetCategory : BaseEntity |
| 7 | { |
| 8 | public Guid TripId { get; set; } |
| 9 | public Trip? Trip { get; set; } |
| 10 | |
| 11 | [Display(Name = nameof(Name), ResourceType = typeof(App.Resources.Domain.BudgetCategory))] |
| 12 | public LangStr Name { get; set; } = new(); |
| 13 | |
| 14 | [MaxLength(100, ErrorMessageResourceType = typeof(App.Resources.Common), ErrorMessageResourceName = "ErrorMaxLength")] |
| 15 | [Display(Name = nameof(IconName), ResourceType = typeof(App.Resources.Domain.BudgetCategory))] |
| 16 | public string? IconName { get; set; } |
| 17 | |
| 18 | [Display(Name = nameof(PlannedAmount), ResourceType = typeof(App.Resources.Domain.BudgetCategory))] |
| 19 | public decimal? PlannedAmount { get; set; } |
| 20 | |
| 21 | [Display(Name = nameof(DisplayOrder), ResourceType = typeof(App.Resources.Domain.BudgetCategory))] |
| 22 | public int DisplayOrder { get; set; } |
| 23 | |
| 24 | public ICollection<Expense>? Expenses { get; set; } |
| 25 | } |
| 26 | |