/// <summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary> public void Copy_From(IMaterialCopyInformation source, bool includePrimaryKey = false) { if (includePrimaryKey) this.Id = source.Id; this.SourceMachine = source.SourceMachine; this.SourceFileName = source.SourceFileName; this.TargetArchiveId = source.TargetArchiveId; this.TargetSubPathAndName = source.TargetSubPathAndName; this.OrderInsertedAt = source.OrderInsertedAt; this.ProcessingStarted = source.ProcessingStarted; }
/// <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(IMaterialCopyInformation source, params string[] includedColumns) { if (includedColumns.Contains(MaterialCopyInformationenTable.IdCol)) this.Id = source.Id; if (includedColumns.Contains(MaterialCopyInformationenTable.SourceMachineCol)) this.SourceMachine = source.SourceMachine; if (includedColumns.Contains(MaterialCopyInformationenTable.SourceFileNameCol)) this.SourceFileName = source.SourceFileName; if (includedColumns.Contains(MaterialCopyInformationenTable.TargetArchiveIdCol)) this.TargetArchiveId = source.TargetArchiveId; if (includedColumns.Contains(MaterialCopyInformationenTable.TargetSubPathAndNameCol)) this.TargetSubPathAndName = source.TargetSubPathAndName; if (includedColumns.Contains(MaterialCopyInformationenTable.OrderInsertedAtCol)) this.OrderInsertedAt = source.OrderInsertedAt; if (includedColumns.Contains(MaterialCopyInformationenTable.ProcessingStartedCol)) this.ProcessingStarted = source.ProcessingStarted; }
/// <summary> This method copy's each database field into the <paramref name="target"/> interface. </summary> public void Copy_To(IMaterialCopyInformation target, bool includePrimaryKey = false) { if (includePrimaryKey) target.Id = this.Id; target.SourceMachine = this.SourceMachine; target.SourceFileName = this.SourceFileName; target.TargetArchiveId = this.TargetArchiveId; target.TargetSubPathAndName = this.TargetSubPathAndName; target.OrderInsertedAt = this.OrderInsertedAt; target.ProcessingStarted = this.ProcessingStarted; }