/// <summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary> public void Copy_From(IMaterialArchiveDataBase source, bool includePrimaryKey = false) { if (includePrimaryKey) this.MaterialArchivDataBaseId = source.MaterialArchivDataBaseId; this.FileNameAsSearchKey = source.FileNameAsSearchKey; this.LastFoundPhysicalLocation = source.LastFoundPhysicalLocation; this.FileSizeInKB = source.FileSizeInKB; this.PlayingDurationInSeconds = source.PlayingDurationInSeconds; this.LastFoundTimeStamp = source.LastFoundTimeStamp; this.ModifyTimeStamp = source.ModifyTimeStamp; this.ActuallInProcessBy = source.ActuallInProcessBy; this.ProcessingStartTime = source.ProcessingStartTime; this.ProcessingStopTime = source.ProcessingStopTime; }
/// <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(IMaterialArchiveDataBase source, params string[] includedColumns) { if (includedColumns.Contains(MaterialArchiveDataBasesTable.MaterialArchivDataBaseIdCol)) this.MaterialArchivDataBaseId = source.MaterialArchivDataBaseId; if (includedColumns.Contains(MaterialArchiveDataBasesTable.FileNameAsSearchKeyCol)) this.FileNameAsSearchKey = source.FileNameAsSearchKey; if (includedColumns.Contains(MaterialArchiveDataBasesTable.LastFoundPhysicalLocationCol)) this.LastFoundPhysicalLocation = source.LastFoundPhysicalLocation; if (includedColumns.Contains(MaterialArchiveDataBasesTable.FileSizeInKBCol)) this.FileSizeInKB = source.FileSizeInKB; if (includedColumns.Contains(MaterialArchiveDataBasesTable.PlayingDurationInSecondsCol)) this.PlayingDurationInSeconds = source.PlayingDurationInSeconds; if (includedColumns.Contains(MaterialArchiveDataBasesTable.LastFoundTimeStampCol)) this.LastFoundTimeStamp = source.LastFoundTimeStamp; if (includedColumns.Contains(MaterialArchiveDataBasesTable.ModifyTimeStampCol)) this.ModifyTimeStamp = source.ModifyTimeStamp; if (includedColumns.Contains(MaterialArchiveDataBasesTable.ActuallInProcessByCol)) this.ActuallInProcessBy = source.ActuallInProcessBy; if (includedColumns.Contains(MaterialArchiveDataBasesTable.ProcessingStartTimeCol)) this.ProcessingStartTime = source.ProcessingStartTime; if (includedColumns.Contains(MaterialArchiveDataBasesTable.ProcessingStopTimeCol)) this.ProcessingStopTime = source.ProcessingStopTime; }
/// <summary> This method copy's each database field into the <paramref name="target"/> interface. </summary> public void Copy_To(IMaterialArchiveDataBase target, bool includePrimaryKey = false) { if (includePrimaryKey) target.MaterialArchivDataBaseId = this.MaterialArchivDataBaseId; target.FileNameAsSearchKey = this.FileNameAsSearchKey; target.LastFoundPhysicalLocation = this.LastFoundPhysicalLocation; target.FileSizeInKB = this.FileSizeInKB; target.PlayingDurationInSeconds = this.PlayingDurationInSeconds; target.LastFoundTimeStamp = this.LastFoundTimeStamp; target.ModifyTimeStamp = this.ModifyTimeStamp; target.ActuallInProcessBy = this.ActuallInProcessBy; target.ProcessingStartTime = this.ProcessingStartTime; target.ProcessingStopTime = this.ProcessingStopTime; }