praktikum4/Domain/Subject.cs

22 lines
484 B
C#
Raw Normal View History

2017-03-08 14:38:36 +02:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
namespace Domain
{
2017-03-08 15:47:46 +02:00
public class Subject
2017-03-08 14:38:36 +02:00
{
public int SubjectId { get; set; }
[MaxLength(128)]
public string SubjectName { get; set; }
// use virtual to allow entity framework lazy loading
public virtual List<Cource> Cources { get; set; } = new List<Cource>();
}
}