예제 #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(IMMProgrammBlock source, bool includePrimaryKey = false)
		{
			if (includePrimaryKey) this.Id = source.Id;
			this.NameId = source.NameId;
			this.TypId = source.TypId;
			this.MMSenderId = source.MMSenderId;
			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(IMMProgrammBlock source, params string[] includedColumns)
		{
			if (includedColumns.Contains(MMProgrammBlocksTable.IdCol)) this.Id = source.Id;
			if (includedColumns.Contains(MMProgrammBlocksTable.NameIdCol)) this.NameId = source.NameId;
			if (includedColumns.Contains(MMProgrammBlocksTable.TypIdCol)) this.TypId = source.TypId;
			if (includedColumns.Contains(MMProgrammBlocksTable.MMSenderIdCol)) this.MMSenderId = source.MMSenderId;
			if (includedColumns.Contains(MMProgrammBlocksTable.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(IMMProgrammBlock target, bool includePrimaryKey = false)
		{
			if (includePrimaryKey) target.Id = this.Id;
			target.NameId = this.NameId;
			target.TypId = this.TypId;
			target.MMSenderId = this.MMSenderId;
			target.LastUpdateToken = this.LastUpdateToken;
		}