Skip to content
Snippets Groups Projects
Course.cs 730 B
Newer Older
using System;
using System.Collections.Generic;
using System.Text;

namespace Tsi1.DataLayer.Entities
{
    public class Course
    {
        public Course()
        {
            StudentCourses = new HashSet<StudentCourse>();
            ProfessorCourses = new HashSet<ProfessorCourse>();
esantangelo's avatar
esantangelo committed
            Forums = new HashSet<Forum>();
        }

        public int Id { get; set; }
esantangelo's avatar
esantangelo committed
        
        public string Name { get; set; }

esantangelo's avatar
esantangelo committed
        public int TenantId { get; set; }

        public Tenant Tenant { get; set; }

        public ICollection<StudentCourse> StudentCourses { get; set; }
        public ICollection<ProfessorCourse> ProfessorCourses { get; set; }
esantangelo's avatar
esantangelo committed
        public ICollection<Forum> Forums { get; set; }