/// <summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary> public void Copy_From(IMMPhysicalArchive source, bool includePrimaryKey = false) { if (includePrimaryKey) this.Id = source.Id; this.NameId = source.NameId; this.Description = source.Description; this.PhysicalPath = source.PhysicalPath; this.LastCheckedTime = source.LastCheckedTime; 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(IMMPhysicalArchive source, params string[] includedColumns) { if (includedColumns.Contains(MMPhysicalArchivesTable.IdCol)) this.Id = source.Id; if (includedColumns.Contains(MMPhysicalArchivesTable.NameIdCol)) this.NameId = source.NameId; if (includedColumns.Contains(MMPhysicalArchivesTable.DescriptionCol)) this.Description = source.Description; if (includedColumns.Contains(MMPhysicalArchivesTable.PhysicalPathCol)) this.PhysicalPath = source.PhysicalPath; if (includedColumns.Contains(MMPhysicalArchivesTable.LastCheckedTimeCol)) this.LastCheckedTime = source.LastCheckedTime; if (includedColumns.Contains(MMPhysicalArchivesTable.LastUpdateTokenCol)) this.LastUpdateToken = source.LastUpdateToken; }
/// <summary> This method copy's each database field into the <paramref name="target"/> interface. </summary> public void Copy_To(IMMPhysicalArchive target, bool includePrimaryKey = false) { if (includePrimaryKey) target.Id = this.Id; target.NameId = this.NameId; target.Description = this.Description; target.PhysicalPath = this.PhysicalPath; target.LastCheckedTime = this.LastCheckedTime; target.LastUpdateToken = this.LastUpdateToken; }