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(ISendung source, bool includePrimaryKey = false)
		{
			if (includePrimaryKey) this.SendungId = source.SendungId;
			this.Name = source.Name;
			this.ShortDescription = source.ShortDescription;
			this.LongDescription = source.LongDescription;
			this.SendungTypId = source.SendungTypId;
			this.IntroFileId = source.IntroFileId;
			this.IntermediateFileId = source.IntermediateFileId;
			this.TrailerFileId = source.TrailerFileId;
			this.SenderIdOld = source.SenderIdOld;
			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(ISendung source, params string[] includedColumns)
		{
			if (includedColumns.Contains(SendungenTable.SendungIdCol)) this.SendungId = source.SendungId;
			if (includedColumns.Contains(SendungenTable.NameCol)) this.Name = source.Name;
			if (includedColumns.Contains(SendungenTable.ShortDescriptionCol)) this.ShortDescription = source.ShortDescription;
			if (includedColumns.Contains(SendungenTable.LongDescriptionCol)) this.LongDescription = source.LongDescription;
			if (includedColumns.Contains(SendungenTable.SendungTypIdCol)) this.SendungTypId = source.SendungTypId;
			if (includedColumns.Contains(SendungenTable.IntroFileIdCol)) this.IntroFileId = source.IntroFileId;
			if (includedColumns.Contains(SendungenTable.IntermediateFileIdCol)) this.IntermediateFileId = source.IntermediateFileId;
			if (includedColumns.Contains(SendungenTable.TrailerFileIdCol)) this.TrailerFileId = source.TrailerFileId;
			if (includedColumns.Contains(SendungenTable.SenderIdOldCol)) this.SenderIdOld = source.SenderIdOld;
			if (includedColumns.Contains(SendungenTable.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(ISendung target, bool includePrimaryKey = false)
		{
			if (includePrimaryKey) target.SendungId = this.SendungId;
			target.Name = this.Name;
			target.ShortDescription = this.ShortDescription;
			target.LongDescription = this.LongDescription;
			target.SendungTypId = this.SendungTypId;
			target.IntroFileId = this.IntroFileId;
			target.IntermediateFileId = this.IntermediateFileId;
			target.TrailerFileId = this.TrailerFileId;
			target.SenderIdOld = this.SenderIdOld;
			target.LastUpdateToken = this.LastUpdateToken;
		}