Ejemplo n.º 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(IEltern source, bool includePrimaryKey = false)
		{
			if (includePrimaryKey) this.Id = source.Id;
			this.Vorname = source.Vorname;
			this.FamilienName = source.FamilienName;
			this.TelefonNummern = source.TelefonNummern;
			this.EMail = source.EMail;
			this.Www = source.Www;
			this.EMail1 = source.EMail1;
			this.LastUpdateToken = source.LastUpdateToken;
		}
Ejemplo n.º 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(IEltern source, params string[] includedColumns)
		{
			if (includedColumns.Contains(ElternsTable.IdCol)) this.Id = source.Id;
			if (includedColumns.Contains(ElternsTable.VornameCol)) this.Vorname = source.Vorname;
			if (includedColumns.Contains(ElternsTable.FamilienNameCol)) this.FamilienName = source.FamilienName;
			if (includedColumns.Contains(ElternsTable.TelefonNummernCol)) this.TelefonNummern = source.TelefonNummern;
			if (includedColumns.Contains(ElternsTable.EMailCol)) this.EMail = source.EMail;
			if (includedColumns.Contains(ElternsTable.WwwCol)) this.Www = source.Www;
			if (includedColumns.Contains(ElternsTable.EMail1Col)) this.EMail1 = source.EMail1;
			if (includedColumns.Contains(ElternsTable.LastUpdateTokenCol)) this.LastUpdateToken = source.LastUpdateToken;
		}
Ejemplo n.º 3
0
		///	<summary> This method copy's each database field into the <paramref name="target"/> interface. </summary>
		public void Copy_To(IEltern target, bool includePrimaryKey = false)
		{
			if (includePrimaryKey) target.Id = this.Id;
			target.Vorname = this.Vorname;
			target.FamilienName = this.FamilienName;
			target.TelefonNummern = this.TelefonNummern;
			target.EMail = this.EMail;
			target.Www = this.Www;
			target.EMail1 = this.EMail1;
			target.LastUpdateToken = this.LastUpdateToken;
		}