using System;

using BS.Shared;

namespace BeWo.Data.Entities
{
    public class Wohnheimbuchung2Costbearer2SupportConcept : BeWoEntityBase
    {
        public static String PropertyName_StartDate                 = "StartDate";
        public static String PropertyName_EndDate                   = "EndDate";
        public static String PropertyName_CostBearer2SupportConcept = "CostBearer2SupportConcept";
        public static String PropertyName_Wohnheimbuchung           = "Wohnheimbuchung";

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

        private DateTime? _StartDate;
        private DateTime? _EndDate;
        private CostBearer2SupportConcept _CostBearer2SupportConcept;
        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 CostBearer2SupportConcept CostBearer2SupportConcept
        {
            get { return _CostBearer2SupportConcept; }
            set
            {
                if (AreDifferent(_CostBearer2SupportConcept, value))
                {
                    _CostBearer2SupportConcept = value;
                }
            }
        }

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