/// <summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary> public void Copy_From(IPhysicalArchivePath source, bool includePrimaryKey = false) { if (includePrimaryKey) this.ArchiveId = source.ArchiveId; this.ArchivePhysicalPath = source.ArchivePhysicalPath; this.AccessableFrom = source.AccessableFrom; this.AccessableTo = source.AccessableTo; }
/// <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(IPhysicalArchivePath source, params string[] includedColumns) { if (includedColumns.Contains(PhysicalArchivePathsTable.ArchiveIdCol)) this.ArchiveId = source.ArchiveId; if (includedColumns.Contains(PhysicalArchivePathsTable.ArchivePhysicalPathCol)) this.ArchivePhysicalPath = source.ArchivePhysicalPath; if (includedColumns.Contains(PhysicalArchivePathsTable.AccessableFromCol)) this.AccessableFrom = source.AccessableFrom; if (includedColumns.Contains(PhysicalArchivePathsTable.AccessableToCol)) this.AccessableTo = source.AccessableTo; }
/// <summary> This method copy's each database field into the <paramref name="target"/> interface. </summary> public void Copy_To(IPhysicalArchivePath target, bool includePrimaryKey = false) { if (includePrimaryKey) target.ArchiveId = this.ArchiveId; target.ArchivePhysicalPath = this.ArchivePhysicalPath; target.AccessableFrom = this.AccessableFrom; target.AccessableTo = this.AccessableTo; }