/// <summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary> public void Copy_From(IMMProcessingStatusEntry source, bool includePrimaryKey = false) { if (includePrimaryKey) this.Id = source.Id; this.NameId = source.NameId; this.ForeignTypId = source.ForeignTypId; this.LastProcessedForeignLastUpdateToken = source.LastProcessedForeignLastUpdateToken; this.LastProcessedForeignLastChangedTimeStamp = source.LastProcessedForeignLastChangedTimeStamp; this.LastProcessedSourceFileTimeStamp = source.LastProcessedSourceFileTimeStamp; this.LastProcessedSourceOldFileTimeStamp = source.LastProcessedSourceOldFileTimeStamp; this.Version = source.Version; this.LastUpdateToken = source.LastUpdateToken; }
/// <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(IMMProcessingStatusEntry source, params string[] includedColumns) { if (includedColumns.Contains(MMProcessingStatusEntriesTable.IdCol)) this.Id = source.Id; if (includedColumns.Contains(MMProcessingStatusEntriesTable.NameIdCol)) this.NameId = source.NameId; if (includedColumns.Contains(MMProcessingStatusEntriesTable.ForeignTypIdCol)) this.ForeignTypId = source.ForeignTypId; if (includedColumns.Contains(MMProcessingStatusEntriesTable.LastProcessedForeignLastUpdateTokenCol)) this.LastProcessedForeignLastUpdateToken = source.LastProcessedForeignLastUpdateToken; if (includedColumns.Contains(MMProcessingStatusEntriesTable.LastProcessedForeignLastChangedTimeStampCol)) this.LastProcessedForeignLastChangedTimeStamp = source.LastProcessedForeignLastChangedTimeStamp; if (includedColumns.Contains(MMProcessingStatusEntriesTable.LastProcessedSourceFileTimeStampCol)) this.LastProcessedSourceFileTimeStamp = source.LastProcessedSourceFileTimeStamp; if (includedColumns.Contains(MMProcessingStatusEntriesTable.LastProcessedSourceOldFileTimeStampCol)) this.LastProcessedSourceOldFileTimeStamp = source.LastProcessedSourceOldFileTimeStamp; if (includedColumns.Contains(MMProcessingStatusEntriesTable.VersionCol)) this.Version = source.Version; if (includedColumns.Contains(MMProcessingStatusEntriesTable.LastUpdateTokenCol)) this.LastUpdateToken = source.LastUpdateToken; }
/// <summary> This method copy's each database field into the <paramref name="target"/> interface. </summary> public void Copy_To(IMMProcessingStatusEntry target, bool includePrimaryKey = false) { if (includePrimaryKey) target.Id = this.Id; target.NameId = this.NameId; target.ForeignTypId = this.ForeignTypId; target.LastProcessedForeignLastUpdateToken = this.LastProcessedForeignLastUpdateToken; target.LastProcessedForeignLastChangedTimeStamp = this.LastProcessedForeignLastChangedTimeStamp; target.LastProcessedSourceFileTimeStamp = this.LastProcessedSourceFileTimeStamp; target.LastProcessedSourceOldFileTimeStamp = this.LastProcessedSourceOldFileTimeStamp; target.Version = this.Version; target.LastUpdateToken = this.LastUpdateToken; }