/// <summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary> public void Copy_From(IStructuredMaterialDataBaseEntry source, bool includePrimaryKey = false) { if (includePrimaryKey) this.Id = source.Id; this.FileId = source.FileId; this.FoldedArchivePath = source.FoldedArchivePath; this.ArchiveId = source.ArchiveId; this.SubPathAndName = source.SubPathAndName; this.FileSizeInKB = source.FileSizeInKB; this.PlayingDurationInSeconds = source.PlayingDurationInSeconds; this.NumberOfPages = source.NumberOfPages; this.LastFoundTimeStamp = source.LastFoundTimeStamp; this.ModifyTimeStamp = source.ModifyTimeStamp; this.TechnicalTyp = source.TechnicalTyp; }
/// <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(IStructuredMaterialDataBaseEntry source, params string[] includedColumns) { if (includedColumns.Contains(StructuredMaterialDataBaseEntriesTable.IdCol)) this.Id = source.Id; if (includedColumns.Contains(StructuredMaterialDataBaseEntriesTable.FileIdCol)) this.FileId = source.FileId; if (includedColumns.Contains(StructuredMaterialDataBaseEntriesTable.FoldedArchivePathCol)) this.FoldedArchivePath = source.FoldedArchivePath; if (includedColumns.Contains(StructuredMaterialDataBaseEntriesTable.ArchiveIdCol)) this.ArchiveId = source.ArchiveId; if (includedColumns.Contains(StructuredMaterialDataBaseEntriesTable.SubPathAndNameCol)) this.SubPathAndName = source.SubPathAndName; if (includedColumns.Contains(StructuredMaterialDataBaseEntriesTable.FileSizeInKBCol)) this.FileSizeInKB = source.FileSizeInKB; if (includedColumns.Contains(StructuredMaterialDataBaseEntriesTable.PlayingDurationInSecondsCol)) this.PlayingDurationInSeconds = source.PlayingDurationInSeconds; if (includedColumns.Contains(StructuredMaterialDataBaseEntriesTable.NumberOfPagesCol)) this.NumberOfPages = source.NumberOfPages; if (includedColumns.Contains(StructuredMaterialDataBaseEntriesTable.LastFoundTimeStampCol)) this.LastFoundTimeStamp = source.LastFoundTimeStamp; if (includedColumns.Contains(StructuredMaterialDataBaseEntriesTable.ModifyTimeStampCol)) this.ModifyTimeStamp = source.ModifyTimeStamp; if (includedColumns.Contains(StructuredMaterialDataBaseEntriesTable.TechnicalTypCol)) this.TechnicalTyp = source.TechnicalTyp; }
/// <summary> This method copy's each database field into the <paramref name="target"/> interface. </summary> public void Copy_To(IStructuredMaterialDataBaseEntry target, bool includePrimaryKey = false) { if (includePrimaryKey) target.Id = this.Id; target.FileId = this.FileId; target.FoldedArchivePath = this.FoldedArchivePath; target.ArchiveId = this.ArchiveId; target.SubPathAndName = this.SubPathAndName; target.FileSizeInKB = this.FileSizeInKB; target.PlayingDurationInSeconds = this.PlayingDurationInSeconds; target.NumberOfPages = this.NumberOfPages; target.LastFoundTimeStamp = this.LastFoundTimeStamp; target.ModifyTimeStamp = this.ModifyTimeStamp; target.TechnicalTyp = this.TechnicalTyp; }