CourseWork_SchoolStudyAgain/SchoolAgainStudy/SchoolAgainStudyDataBaseImplements/Models/TaskMaterial.cs

21 lines
541 B
C#
Raw Normal View History

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 TaskMaterial
{
public int Id { get; set; }
[Required]
public int TaskId { get; set; }
[Required]
public int MaterialId { get; set; }
public virtual Task Task { get; set; } = new();
public virtual Material Material { get; set; } = new();
}
}