diff --git a/Domain/Cource.cs b/Domain/Cource.cs new file mode 100644 index 0000000..41f6043 --- /dev/null +++ b/Domain/Cource.cs @@ -0,0 +1,22 @@ +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 Persons { get; set; } = new List(); + } +} diff --git a/Domain/Domain.csproj b/Domain/Domain.csproj index 74ff25a..d07b6fd 100644 --- a/Domain/Domain.csproj +++ b/Domain/Domain.csproj @@ -41,8 +41,12 @@ + + + +