Esempio 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(INighTV source, bool includePrimaryKey = false)
		{
			if (includePrimaryKey) this.Id = source.Id;
			this.NameId = source.NameId;
			this.NumberOfPages = source.NumberOfPages;
			this.Titel = source.Titel;
			this.ModifyTimeStamp = source.ModifyTimeStamp;
			this.ProcessingStatus = source.ProcessingStatus;
		}
Esempio 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(INighTV source, params string[] includedColumns)
		{
			if (includedColumns.Contains(NighTVsTable.IdCol)) this.Id = source.Id;
			if (includedColumns.Contains(NighTVsTable.NameIdCol)) this.NameId = source.NameId;
			if (includedColumns.Contains(NighTVsTable.NumberOfPagesCol)) this.NumberOfPages = source.NumberOfPages;
			if (includedColumns.Contains(NighTVsTable.TitelCol)) this.Titel = source.Titel;
			if (includedColumns.Contains(NighTVsTable.ModifyTimeStampCol)) this.ModifyTimeStamp = source.ModifyTimeStamp;
			if (includedColumns.Contains(NighTVsTable.ProcessingStatusCol)) this.ProcessingStatus = source.ProcessingStatus;
		}
Esempio n. 3
0
		///	<summary> This method copy's each database field into the <paramref name="target"/> interface. </summary>
		public void Copy_To(INighTV target, bool includePrimaryKey = false)
		{
			if (includePrimaryKey) target.Id = this.Id;
			target.NameId = this.NameId;
			target.NumberOfPages = this.NumberOfPages;
			target.Titel = this.Titel;
			target.ModifyTimeStamp = this.ModifyTimeStamp;
			target.ProcessingStatus = this.ProcessingStatus;
		}