PIbd-21_Anisin_R.S._CourseW.../TravelAgency/TravelAgencyDatabaseImplement/Models/ExcursionTour.cs

20 lines
428 B
C#
Raw Permalink Normal View History

2024-04-28 23:08:12 +04:00
using System.ComponentModel.DataAnnotations;
namespace TravelAgencyDatabaseImplement.Models
{
public class ExcursionTour
{
public int Id { get; set; }
[Required]
public int ExcursionId { get; set; }
[Required]
public int TourId { get; set; }
public virtual Excursion Excursion { get; set; } = new();
public virtual Tour Tour { get; set; } = new();
}
}