blob: 977fb7401b39faa8f676e68676bd3a7ab7819e6d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Costasdev.ServiceViewer.Data.Gtfs.Enums;
using Microsoft.EntityFrameworkCore;
namespace Costasdev.ServiceViewer.Data.Gtfs;
[Table("calendar_dates")]
[PrimaryKey(nameof(ServiceId), nameof(Date))]
public class GtfsCalendarDate
{
[Column("service_id")]
[MaxLength(32)]
public required string ServiceId { get; set; }
[Column("date")]
public required DateTime Date { get; set; }
[Column("exception_type")]
public required ExceptionType ExceptionType { get; set; }
}
|