20 lines
452 B
C#
20 lines
452 B
C#
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();
|
|
}
|
|
}
|