/// <summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary> public void Copy_From(INewsUhr source, bool includePrimaryKey = false) { if (includePrimaryKey) this.Id = source.Id; this.NameId = source.NameId; this.NumberOfPages = source.NumberOfPages; this.TextOben = source.TextOben; this.TextMain = source.TextMain; this.TextUnten = source.TextUnten; this.ControlInformation = source.ControlInformation; this.ModifyTimeStamp = source.ModifyTimeStamp; this.ProcessingStatus = source.ProcessingStatus; }
/// <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(INewsUhr source, params string[] includedColumns) { if (includedColumns.Contains(NewsUhrenTable.IdCol)) this.Id = source.Id; if (includedColumns.Contains(NewsUhrenTable.NameIdCol)) this.NameId = source.NameId; if (includedColumns.Contains(NewsUhrenTable.NumberOfPagesCol)) this.NumberOfPages = source.NumberOfPages; if (includedColumns.Contains(NewsUhrenTable.TextObenCol)) this.TextOben = source.TextOben; if (includedColumns.Contains(NewsUhrenTable.TextMainCol)) this.TextMain = source.TextMain; if (includedColumns.Contains(NewsUhrenTable.TextUntenCol)) this.TextUnten = source.TextUnten; if (includedColumns.Contains(NewsUhrenTable.ControlInformationCol)) this.ControlInformation = source.ControlInformation; if (includedColumns.Contains(NewsUhrenTable.ModifyTimeStampCol)) this.ModifyTimeStamp = source.ModifyTimeStamp; if (includedColumns.Contains(NewsUhrenTable.ProcessingStatusCol)) this.ProcessingStatus = source.ProcessingStatus; }
/// <summary> This method copy's each database field into the <paramref name="target"/> interface. </summary> public void Copy_To(INewsUhr target, bool includePrimaryKey = false) { if (includePrimaryKey) target.Id = this.Id; target.NameId = this.NameId; target.NumberOfPages = this.NumberOfPages; target.TextOben = this.TextOben; target.TextMain = this.TextMain; target.TextUnten = this.TextUnten; target.ControlInformation = this.ControlInformation; target.ModifyTimeStamp = this.ModifyTimeStamp; target.ProcessingStatus = this.ProcessingStatus; }