/// <summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary> public void Copy_From(IProgrammLog source, bool includePrimaryKey = false) { if (includePrimaryKey) this.Id = source.Id; this.Username = source.Username; this.Datum = source.Datum; this.Sendung = source.Sendung; this.Programmpunkt = source.Programmpunkt; this.Video = source.Video; this.Sendebeginn = source.Sendebeginn; }
/// <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(IProgrammLog source, params string[] includedColumns) { if (includedColumns.Contains(ProgrammLogsTable.IdCol)) this.Id = source.Id; if (includedColumns.Contains(ProgrammLogsTable.UsernameCol)) this.Username = source.Username; if (includedColumns.Contains(ProgrammLogsTable.DatumCol)) this.Datum = source.Datum; if (includedColumns.Contains(ProgrammLogsTable.SendungCol)) this.Sendung = source.Sendung; if (includedColumns.Contains(ProgrammLogsTable.ProgrammpunktCol)) this.Programmpunkt = source.Programmpunkt; if (includedColumns.Contains(ProgrammLogsTable.VideoCol)) this.Video = source.Video; if (includedColumns.Contains(ProgrammLogsTable.SendebeginnCol)) this.Sendebeginn = source.Sendebeginn; }
/// <summary> This method copy's each database field into the <paramref name="target"/> interface. </summary> public void Copy_To(IProgrammLog target, bool includePrimaryKey = false) { if (includePrimaryKey) target.Id = this.Id; target.Username = this.Username; target.Datum = this.Datum; target.Sendung = this.Sendung; target.Programmpunkt = this.Programmpunkt; target.Video = this.Video; target.Sendebeginn = this.Sendebeginn; }