コード例 #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(IHausBetreuung source, bool includePrimaryKey = false)
		{
			if (includePrimaryKey) this.Id = source.Id;
			this.NameId = source.NameId;
			this.NumberOfPages = source.NumberOfPages;
			this.Titel = source.Titel;
			this.KurzBeschreibung = source.KurzBeschreibung;
			this.LangBeschreibung1 = source.LangBeschreibung1;
			this.LangBeschreibung2 = source.LangBeschreibung2;
			this.ModifyTimeStamp = source.ModifyTimeStamp;
			this.ProcessingStatus = source.ProcessingStatus;
		}
コード例 #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(IHausBetreuung source, params string[] includedColumns)
		{
			if (includedColumns.Contains(HausBetreuungsTable.IdCol)) this.Id = source.Id;
			if (includedColumns.Contains(HausBetreuungsTable.NameIdCol)) this.NameId = source.NameId;
			if (includedColumns.Contains(HausBetreuungsTable.NumberOfPagesCol)) this.NumberOfPages = source.NumberOfPages;
			if (includedColumns.Contains(HausBetreuungsTable.TitelCol)) this.Titel = source.Titel;
			if (includedColumns.Contains(HausBetreuungsTable.KurzBeschreibungCol)) this.KurzBeschreibung = source.KurzBeschreibung;
			if (includedColumns.Contains(HausBetreuungsTable.LangBeschreibung1Col)) this.LangBeschreibung1 = source.LangBeschreibung1;
			if (includedColumns.Contains(HausBetreuungsTable.LangBeschreibung2Col)) this.LangBeschreibung2 = source.LangBeschreibung2;
			if (includedColumns.Contains(HausBetreuungsTable.ModifyTimeStampCol)) this.ModifyTimeStamp = source.ModifyTimeStamp;
			if (includedColumns.Contains(HausBetreuungsTable.ProcessingStatusCol)) this.ProcessingStatus = source.ProcessingStatus;
		}
コード例 #3
0
		///	<summary> This method copy's each database field into the <paramref name="target"/> interface. </summary>
		public void Copy_To(IHausBetreuung target, bool includePrimaryKey = false)
		{
			if (includePrimaryKey) target.Id = this.Id;
			target.NameId = this.NameId;
			target.NumberOfPages = this.NumberOfPages;
			target.Titel = this.Titel;
			target.KurzBeschreibung = this.KurzBeschreibung;
			target.LangBeschreibung1 = this.LangBeschreibung1;
			target.LangBeschreibung2 = this.LangBeschreibung2;
			target.ModifyTimeStamp = this.ModifyTimeStamp;
			target.ProcessingStatus = this.ProcessingStatus;
		}