/// <summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary> public void Copy_From(IVideoFileZuBeitrag source, bool includePrimaryKey = false) { if (includePrimaryKey) this.VideoFilesZuBeitraegeId = source.VideoFilesZuBeitraegeId; this.BeitragId = source.BeitragId; this.FileId = source.FileId; this.Reihenfolge = source.Reihenfolge; this.PlayLength = source.PlayLength; }
/// <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(IVideoFileZuBeitrag source, params string[] includedColumns) { if (includedColumns.Contains(VideoFilesZuBeitraegeTable.VideoFilesZuBeitraegeIdCol)) this.VideoFilesZuBeitraegeId = source.VideoFilesZuBeitraegeId; if (includedColumns.Contains(VideoFilesZuBeitraegeTable.BeitragIdCol)) this.BeitragId = source.BeitragId; if (includedColumns.Contains(VideoFilesZuBeitraegeTable.FileIdCol)) this.FileId = source.FileId; if (includedColumns.Contains(VideoFilesZuBeitraegeTable.ReihenfolgeCol)) this.Reihenfolge = source.Reihenfolge; if (includedColumns.Contains(VideoFilesZuBeitraegeTable.PlayLengthCol)) this.PlayLength = source.PlayLength; }
/// <summary> This method copy's each database field into the <paramref name="target"/> interface. </summary> public void Copy_To(IVideoFileZuBeitrag target, bool includePrimaryKey = false) { if (includePrimaryKey) target.VideoFilesZuBeitraegeId = this.VideoFilesZuBeitraegeId; target.BeitragId = this.BeitragId; target.FileId = this.FileId; target.Reihenfolge = this.Reihenfolge; target.PlayLength = this.PlayLength; }