PIbd-21_Pyatakov_KM_Markov_.../UniversityDataBaseImplemet/Models/StudentDocument.cs

21 lines
545 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace UniversityDataBaseImplemet.Models
{
public class StudentDocument
{
public int Id { get; set; }
[Required]
public int StudentId { get; set; }
[Required]
public int DocumentId { get; set; }
public virtual Student Student { get; set; } = new();
public virtual Document Document { get; set; } = new();
}
}