22 lines
582 B
C#
22 lines
582 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.ComponentModel;
|
|||
|
using System.ComponentModel.DataAnnotations;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace SchoolAgainStudyDataBaseImplements.Models
|
|||
|
{
|
|||
|
public class StudentInterest
|
|||
|
{
|
|||
|
public int Id { get; set; }
|
|||
|
[Required]
|
|||
|
public int StudentId { get; set; }
|
|||
|
[Required]
|
|||
|
public int InterestId { get; set; }
|
|||
|
public virtual Student Student { get; set; } = new();
|
|||
|
public virtual Interest Interest { get; set; } = new();
|
|||
|
}
|
|||
|
}
|