PIbd-21_Anisin_R.S._CourseW.../TravelAgency/TravelAgencyDatabaseImplement/Models/TripPlace.cs
2024-04-28 23:08:12 +04:00

20 lines
412 B
C#

using System.ComponentModel.DataAnnotations;
namespace TravelAgencyDatabaseImplement.Models
{
public class TripPlace
{
public int Id { get; set; }
[Required]
public int TripId { get; set; }
[Required]
public int PlaceId { get; set; }
public virtual Trip Trip { get; set; } = new();
public virtual Place Place { get; set; } = new();
}
}