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

20 lines
452 B
C#
Raw Normal View History

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