16 lines
427 B
C#
16 lines
427 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace PolyclinicDatabaseImplement.Models
|
|
{
|
|
public class CourseDiagnose
|
|
{
|
|
public int Id { get; set; }
|
|
[Required]
|
|
public int CourseId { get; set; }
|
|
[Required]
|
|
public int DiagnoseId { get; set; }
|
|
public virtual Course Course { get; set; } = new();
|
|
public virtual Diagnose Diagnose { get; set; } = new();
|
|
}
|
|
}
|