16 lines
381 B
C#

using System.ComponentModel.DataAnnotations;
namespace StudentEnrollmentDatabaseImplement.Models
{
public class StudentCourse
{
public long Id { get; set; }
[Required]
public long StudentId { get; set; }
[Required]
public long CourseId { get; set; }
public virtual Student Student { get; set; } = new();
public virtual Course Course { get; set; } = new();
}
}