PIbd-23_Nevaeva_K.A._Travel.../TravelCompany/TravelCompanyDatabaseImplement/Models/TravelCondition.cs
2023-03-20 08:43:09 +04:00

24 lines
636 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
namespace TravelCompanyDatabaseImplement.Models
{
public class TravelCondition
{
public int Id { get; set; }
[Required]
public int TravelId { get; set; }
[Required]
public int ConditionId { get; set; }
[Required]
public int Count { get; set; }
public virtual Condition Condition { get; set; } = new();
public virtual Travel Travel { get; set; } = new();
}
}