/// <summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary> public void Copy_From(IPhysicalDataElement source, bool includePrimaryKey = false) { if (includePrimaryKey) this.Id = source.Id; this.Bezeichner = source.Bezeichner; this.BezeichnerBeschreibung = source.BezeichnerBeschreibung; this.TabellenName = source.TabellenName; this.ControlAdressing = source.ControlAdressing; this.Bereich = source.Bereich; this.LastUpdateToken = source.LastUpdateToken; }
/// <summary> /// This method copy's each database field which is in the <paramref name="includedColumns"/> /// from the <paramref name="source"/> interface to this data row. /// </summary> public void Copy_From_But_TakeOnly(IPhysicalDataElement source, params string[] includedColumns) { if (includedColumns.Contains(PhysicalDataElementeTable.IdCol)) this.Id = source.Id; if (includedColumns.Contains(PhysicalDataElementeTable.BezeichnerCol)) this.Bezeichner = source.Bezeichner; if (includedColumns.Contains(PhysicalDataElementeTable.BezeichnerBeschreibungCol)) this.BezeichnerBeschreibung = source.BezeichnerBeschreibung; if (includedColumns.Contains(PhysicalDataElementeTable.TabellenNameCol)) this.TabellenName = source.TabellenName; if (includedColumns.Contains(PhysicalDataElementeTable.ControlAdressingCol)) this.ControlAdressing = source.ControlAdressing; if (includedColumns.Contains(PhysicalDataElementeTable.BereichCol)) this.Bereich = source.Bereich; if (includedColumns.Contains(PhysicalDataElementeTable.LastUpdateTokenCol)) this.LastUpdateToken = source.LastUpdateToken; }
/// <summary> This method copy's each database field into the <paramref name="target"/> interface. </summary> public void Copy_To(IPhysicalDataElement target, bool includePrimaryKey = false) { if (includePrimaryKey) target.Id = this.Id; target.Bezeichner = this.Bezeichner; target.BezeichnerBeschreibung = this.BezeichnerBeschreibung; target.TabellenName = this.TabellenName; target.ControlAdressing = this.ControlAdressing; target.Bereich = this.Bereich; target.LastUpdateToken = this.LastUpdateToken; }