Exemple #1
0
		///	<summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary>
		public void Copy_From(IErgebniss source, bool includePrimaryKey = false)
		{
			if (includePrimaryKey) this.Id = source.Id;
			this.WahlId = source.WahlId;
			this.SortOrder = source.SortOrder;
			this.ErgebnissName = source.ErgebnissName;
			this.KommissionsIdGuid = source.KommissionsIdGuid;
			this.StimmenVon = source.StimmenVon;
			this.StimmenBis = source.StimmenBis;
			this.BehobeneWahlKarten = source.BehobeneWahlKarten;
			this.Abgegeben = source.Abgegeben;
			this.Ungueltig = source.Ungueltig;
			this.Lokation = source.Lokation;
			this.AbgegebenA = source.AbgegebenA;
			this.AbgegebenB = source.AbgegebenB;
			this.AbgegebenC = source.AbgegebenC;
			this.FremdStiegenStimmen = source.FremdStiegenStimmen;
			this.FremdBlockStimmen = source.FremdBlockStimmen;
			this.LastUpdateToken = source.LastUpdateToken;
		}
Exemple #2
0
		///	<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(IErgebniss source, params string[] includedColumns)
		{
			if (includedColumns.Contains(ErgebnisseTable.IdCol)) this.Id = source.Id;
			if (includedColumns.Contains(ErgebnisseTable.WahlIdCol)) this.WahlId = source.WahlId;
			if (includedColumns.Contains(ErgebnisseTable.SortOrderCol)) this.SortOrder = source.SortOrder;
			if (includedColumns.Contains(ErgebnisseTable.ErgebnissNameCol)) this.ErgebnissName = source.ErgebnissName;
			if (includedColumns.Contains(ErgebnisseTable.KommissionsIdGuidCol)) this.KommissionsIdGuid = source.KommissionsIdGuid;
			if (includedColumns.Contains(ErgebnisseTable.StimmenVonCol)) this.StimmenVon = source.StimmenVon;
			if (includedColumns.Contains(ErgebnisseTable.StimmenBisCol)) this.StimmenBis = source.StimmenBis;
			if (includedColumns.Contains(ErgebnisseTable.BehobeneWahlKartenCol)) this.BehobeneWahlKarten = source.BehobeneWahlKarten;
			if (includedColumns.Contains(ErgebnisseTable.AbgegebenCol)) this.Abgegeben = source.Abgegeben;
			if (includedColumns.Contains(ErgebnisseTable.UngueltigCol)) this.Ungueltig = source.Ungueltig;
			if (includedColumns.Contains(ErgebnisseTable.LokationCol)) this.Lokation = source.Lokation;
			if (includedColumns.Contains(ErgebnisseTable.AbgegebenACol)) this.AbgegebenA = source.AbgegebenA;
			if (includedColumns.Contains(ErgebnisseTable.AbgegebenBCol)) this.AbgegebenB = source.AbgegebenB;
			if (includedColumns.Contains(ErgebnisseTable.AbgegebenCCol)) this.AbgegebenC = source.AbgegebenC;
			if (includedColumns.Contains(ErgebnisseTable.FremdStiegenStimmenCol)) this.FremdStiegenStimmen = source.FremdStiegenStimmen;
			if (includedColumns.Contains(ErgebnisseTable.FremdBlockStimmenCol)) this.FremdBlockStimmen = source.FremdBlockStimmen;
			if (includedColumns.Contains(ErgebnisseTable.LastUpdateTokenCol)) this.LastUpdateToken = source.LastUpdateToken;
		}
Exemple #3
0
		///	<summary> This method copy's each database field into the <paramref name="target"/> interface. </summary>
		public void Copy_To(IErgebniss target, bool includePrimaryKey = false)
		{
			if (includePrimaryKey) target.Id = this.Id;
			target.WahlId = this.WahlId;
			target.SortOrder = this.SortOrder;
			target.ErgebnissName = this.ErgebnissName;
			target.KommissionsIdGuid = this.KommissionsIdGuid;
			target.StimmenVon = this.StimmenVon;
			target.StimmenBis = this.StimmenBis;
			target.BehobeneWahlKarten = this.BehobeneWahlKarten;
			target.Abgegeben = this.Abgegeben;
			target.Ungueltig = this.Ungueltig;
			target.Lokation = this.Lokation;
			target.AbgegebenA = this.AbgegebenA;
			target.AbgegebenB = this.AbgegebenB;
			target.AbgegebenC = this.AbgegebenC;
			target.FremdStiegenStimmen = this.FremdStiegenStimmen;
			target.FremdBlockStimmen = this.FremdBlockStimmen;
			target.LastUpdateToken = this.LastUpdateToken;
		}