/// <summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary> public void Copy_From(IEinzelErgebniss source, bool includePrimaryKey = false) { if (includePrimaryKey) this.Id = source.Id; this.WahlId = source.WahlId; this.ErgId = source.ErgId; this.KanId = source.KanId; this.Stimmen = source.Stimmen; this.Prozent = source.Prozent; this.KandidatenName = source.KandidatenName; this.ErgebnissName = source.ErgebnissName; 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(IEinzelErgebniss source, params string[] includedColumns) { if (includedColumns.Contains(EinzelErgebnisseTable.IdCol)) this.Id = source.Id; if (includedColumns.Contains(EinzelErgebnisseTable.WahlIdCol)) this.WahlId = source.WahlId; if (includedColumns.Contains(EinzelErgebnisseTable.ErgIdCol)) this.ErgId = source.ErgId; if (includedColumns.Contains(EinzelErgebnisseTable.KanIdCol)) this.KanId = source.KanId; if (includedColumns.Contains(EinzelErgebnisseTable.StimmenCol)) this.Stimmen = source.Stimmen; if (includedColumns.Contains(EinzelErgebnisseTable.ProzentCol)) this.Prozent = source.Prozent; if (includedColumns.Contains(EinzelErgebnisseTable.KandidatenNameCol)) this.KandidatenName = source.KandidatenName; if (includedColumns.Contains(EinzelErgebnisseTable.ErgebnissNameCol)) this.ErgebnissName = source.ErgebnissName; if (includedColumns.Contains(EinzelErgebnisseTable.LastUpdateTokenCol)) this.LastUpdateToken = source.LastUpdateToken; }
/// <summary> This method copy's each database field into the <paramref name="target"/> interface. </summary> public void Copy_To(IEinzelErgebniss target, bool includePrimaryKey = false) { if (includePrimaryKey) target.Id = this.Id; target.WahlId = this.WahlId; target.ErgId = this.ErgId; target.KanId = this.KanId; target.Stimmen = this.Stimmen; target.Prozent = this.Prozent; target.KandidatenName = this.KandidatenName; target.ErgebnissName = this.ErgebnissName; target.LastUpdateToken = this.LastUpdateToken; }