using System; using System.Collections.Generic; using BS.Shared; namespace BeWo.Data.Entities { public class Arbeitszeit : BeWoEntityBase { public static string PropertyName_GueltigVon = "GueltigVon"; public static string PropertyName_GueltigBis = "GueltigBis"; public static string PropertyName_EmployeeOid = "EmployeeOid"; public static string PropertyName_ArbeitsZeiteintragListe = "ArbeitszeitEintraege"; public Arbeitszeit() { _Tid = TableID.Arbeitszeit; } private DateTime? _GueltigVon; private DateTime? _GueltigBis; private long? _EmployeeOid; private Customer _Customer; private IList _ArbeitszeitEintraege; public virtual DateTime? GueltigVon { get { return this._GueltigVon; } set { if (this.AreDifferent(this._GueltigVon, value)) { this._GueltigVon = value; } } } public virtual DateTime? GueltigBis { get { return this._GueltigBis; } set { if (this.AreDifferent(this._GueltigBis, value)) { this._GueltigBis = value; } } } public virtual long? EmployeeOid { get => _EmployeeOid; set { if(AreDifferent(_EmployeeOid, value)) { _EmployeeOid = value; } } } public virtual IList ArbeitszeitEintraege { get { return this._ArbeitszeitEintraege ?? (_ArbeitszeitEintraege = new List()); } set { if (this.AreDifferent(this._ArbeitszeitEintraege, value)) { this._ArbeitszeitEintraege = value; } } } public virtual Customer Customer { get => _Customer; set { if(AreDifferent(_Customer, value)) { _Customer = value; } } } } }