21 lines
549 B
C#
21 lines
549 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.ComponentModel.DataAnnotations;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace SchoolAgainStudyDataBaseImplements.Models
|
|||
|
{
|
|||
|
public class LessonMaterial
|
|||
|
{
|
|||
|
public int Id { get; set; }
|
|||
|
[Required]
|
|||
|
public int LessonId { get; set; }
|
|||
|
[Required]
|
|||
|
public int MaterialId { get; set; }
|
|||
|
public virtual Lesson Lesson { get; set; } = new();
|
|||
|
public virtual Material Material { get; set; } = new();
|
|||
|
}
|
|||
|
}
|