using System;

using BS.Shared;

namespace BeWo.Data.Entities
{
    public class Wohnheimbuchung2Employee : BeWoEntityBase
    {
        public static String PropertyName_StartDate                = "StartDate";
        public static String PropertyName_EndDate                  = "EndDate";
        public static String PropertyName_Employee                 = "Employee";
        public static String PropertyName_Wohnheimbuchung2Employee = "Wohnheimbuchung2Employee";

        public Wohnheimbuchung2Employee()
        {
            _Tid = TableID.Wohnheimbuchung2Employee;
        }

        private DateTime? _StartDate;
        private DateTime? _EndDate;
        private Employee _Employee;
        private Wohnheimbuchung _Wohnheimbuchung;

        public virtual DateTime? StartDate
        {
            get { return _StartDate; }
            set
            {
                if (AreDifferent(_StartDate, value))
                {
                    _StartDate = value;
                }
            }
        }

        public virtual DateTime? EndDate
        {
            get { return _EndDate; }
            set
            {
                if (AreDifferent(_EndDate, value))
                {
                    _EndDate = value;
                }
            }
        }

        public virtual Employee Employee
        {
            get { return _Employee; }
            set
            {
                if (AreDifferent(_Employee, value))
                {
                    _Employee = value;
                }
            }
        }

        public virtual Wohnheimbuchung Wohnheimbuchung
        {
            get { return _Wohnheimbuchung; }
            set
            {
                if (AreDifferent(_Wohnheimbuchung, value))
                {
                    _Wohnheimbuchung = value;
                }
            }
        }
    }
}
