/// <summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary> public void Copy_From(IAbgegebeneStimme source, bool includePrimaryKey = false) { if (includePrimaryKey) this.Id = source.Id; this.WahlId = source.WahlId; this.VerwaltungId = source.VerwaltungId; this.StimmZettelId = source.StimmZettelId; this.KandidatenId = source.KandidatenId; this.KandidatenOrder = source.KandidatenOrder; this.Zaehler = source.Zaehler; 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(IAbgegebeneStimme source, params string[] includedColumns) { if (includedColumns.Contains(AbgegebeneStimmenTable.IdCol)) this.Id = source.Id; if (includedColumns.Contains(AbgegebeneStimmenTable.WahlIdCol)) this.WahlId = source.WahlId; if (includedColumns.Contains(AbgegebeneStimmenTable.VerwaltungIdCol)) this.VerwaltungId = source.VerwaltungId; if (includedColumns.Contains(AbgegebeneStimmenTable.StimmZettelIdCol)) this.StimmZettelId = source.StimmZettelId; if (includedColumns.Contains(AbgegebeneStimmenTable.KandidatenIdCol)) this.KandidatenId = source.KandidatenId; if (includedColumns.Contains(AbgegebeneStimmenTable.KandidatenOrderCol)) this.KandidatenOrder = source.KandidatenOrder; if (includedColumns.Contains(AbgegebeneStimmenTable.ZaehlerCol)) this.Zaehler = source.Zaehler; if (includedColumns.Contains(AbgegebeneStimmenTable.LastUpdateTokenCol)) this.LastUpdateToken = source.LastUpdateToken; }
/// <summary> This method copy's each database field into the <paramref name="target"/> interface. </summary> public void Copy_To(IAbgegebeneStimme target, bool includePrimaryKey = false) { if (includePrimaryKey) target.Id = this.Id; target.WahlId = this.WahlId; target.VerwaltungId = this.VerwaltungId; target.StimmZettelId = this.StimmZettelId; target.KandidatenId = this.KandidatenId; target.KandidatenOrder = this.KandidatenOrder; target.Zaehler = this.Zaehler; target.LastUpdateToken = this.LastUpdateToken; }