TripPollOption.cs
683 bytes
| 1 | using System.ComponentModel.DataAnnotations; |
|---|---|
| 2 | using Base.Domain; |
| 3 | |
| 4 | namespace App.Domain; |
| 5 | |
| 6 | public class TripPollOption : BaseEntity |
| 7 | { |
| 8 | public Guid PollId { get; set; } |
| 9 | public TripPoll? Poll { get; set; } |
| 10 | |
| 11 | [MaxLength(300, ErrorMessageResourceType = typeof(App.Resources.Common), ErrorMessageResourceName = "ErrorMaxLength")] |
| 12 | [Display(Name = nameof(Text), ResourceType = typeof(App.Resources.Domain.TripPollOption))] |
| 13 | public string Text { get; set; } = default!; |
| 14 | |
| 15 | [Display(Name = nameof(DisplayOrder), ResourceType = typeof(App.Resources.Domain.TripPollOption))] |
| 16 | public int DisplayOrder { get; set; } |
| 17 | |
| 18 | public ICollection<TripPollVote>? Votes { get; set; } |
| 19 | } |
| 20 | |