Пример #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(IKandidat source, bool includePrimaryKey = false)
		{
			if (includePrimaryKey) this.Id = source.Id;
			this.PersonenId = source.PersonenId;
			this.WahlId = source.WahlId;
			this.FamilienName = source.FamilienName;
			this.VorName = source.VorName;
			this.Titel = source.Titel;
			this.EMail = source.EMail;
			this.Telefon = source.Telefon;
			this.KontaktFreigeben = source.KontaktFreigeben;
			this.KurzText = source.KurzText;
			this.WahlAussagen = source.WahlAussagen;
			this.PersoenlicheDaten = source.PersoenlicheDaten;
			this.KandidatenMovie = source.KandidatenMovie;
			this.KandidatenOrder = source.KandidatenOrder;
			this.BildPixel = source.BildPixel;
			this.LastUpdateToken = source.LastUpdateToken;
		}
Пример #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(IKandidat source, params string[] includedColumns)
		{
			if (includedColumns.Contains(KandidatenTable.IdCol)) this.Id = source.Id;
			if (includedColumns.Contains(KandidatenTable.PersonenIdCol)) this.PersonenId = source.PersonenId;
			if (includedColumns.Contains(KandidatenTable.WahlIdCol)) this.WahlId = source.WahlId;
			if (includedColumns.Contains(KandidatenTable.FamilienNameCol)) this.FamilienName = source.FamilienName;
			if (includedColumns.Contains(KandidatenTable.VorNameCol)) this.VorName = source.VorName;
			if (includedColumns.Contains(KandidatenTable.TitelCol)) this.Titel = source.Titel;
			if (includedColumns.Contains(KandidatenTable.EMailCol)) this.EMail = source.EMail;
			if (includedColumns.Contains(KandidatenTable.TelefonCol)) this.Telefon = source.Telefon;
			if (includedColumns.Contains(KandidatenTable.KontaktFreigebenCol)) this.KontaktFreigeben = source.KontaktFreigeben;
			if (includedColumns.Contains(KandidatenTable.KurzTextCol)) this.KurzText = source.KurzText;
			if (includedColumns.Contains(KandidatenTable.WahlAussagenCol)) this.WahlAussagen = source.WahlAussagen;
			if (includedColumns.Contains(KandidatenTable.PersoenlicheDatenCol)) this.PersoenlicheDaten = source.PersoenlicheDaten;
			if (includedColumns.Contains(KandidatenTable.KandidatenMovieCol)) this.KandidatenMovie = source.KandidatenMovie;
			if (includedColumns.Contains(KandidatenTable.KandidatenOrderCol)) this.KandidatenOrder = source.KandidatenOrder;
			if (includedColumns.Contains(KandidatenTable.BildPixelCol)) this.BildPixel = source.BildPixel;
			if (includedColumns.Contains(KandidatenTable.LastUpdateTokenCol)) this.LastUpdateToken = source.LastUpdateToken;
		}
Пример #3
0
		///	<summary> This method copy's each database field into the <paramref name="target"/> interface. </summary>
		public void Copy_To(IKandidat target, bool includePrimaryKey = false)
		{
			if (includePrimaryKey) target.Id = this.Id;
			target.PersonenId = this.PersonenId;
			target.WahlId = this.WahlId;
			target.FamilienName = this.FamilienName;
			target.VorName = this.VorName;
			target.Titel = this.Titel;
			target.EMail = this.EMail;
			target.Telefon = this.Telefon;
			target.KontaktFreigeben = this.KontaktFreigeben;
			target.KurzText = this.KurzText;
			target.WahlAussagen = this.WahlAussagen;
			target.PersoenlicheDaten = this.PersoenlicheDaten;
			target.KandidatenMovie = this.KandidatenMovie;
			target.KandidatenOrder = this.KandidatenOrder;
			target.BildPixel = this.BildPixel;
			target.LastUpdateToken = this.LastUpdateToken;
		}