23 lines
576 B
C#
23 lines
576 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
namespace Domain
|
|
{
|
|
public class Cource
|
|
{
|
|
public int CourceId { get; set; }
|
|
|
|
// if not required, use nullable int - int?. Dadabase pics it up
|
|
// always specify foregin key manualy
|
|
public int SubjectId { get; set; }
|
|
public Subject Subject { get; set; }
|
|
|
|
public virtual List<PersonCources> Persons { get; set; } = new List<PersonCources>();
|
|
}
|
|
}
|