22 lines
477 B
C#
22 lines
477 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
using System.ComponentModel.DataAnnotations;
|
|||
|
|
|||
|
|
|||
|
namespace Domain
|
|||
|
{
|
|||
|
class Subject
|
|||
|
{
|
|||
|
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>();
|
|||
|
}
|
|||
|
}
|