Rogashova_E.A._CourseWork_H.../HospitalDataBaseImplements/Models/IllnessKurse.cs

22 lines
553 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HospitalDataBaseImplements.Models
{
public class IllnessKurse
{
public int Id { get; set; }
[Required]
public int IllnessId { get; set; }
[Required]
public int KurseId { get; set; }
[Required]
public virtual Illness Illness { get; set; } = new();
public virtual Kurses Kurse { get; set; } = new();
}
}