/// <summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary> public void Copy_From(ISendungZuProgrammBlock source, bool includePrimaryKey = false) { if (includePrimaryKey) this.SendungenZuProgrammBloeckeId = source.SendungenZuProgrammBloeckeId; this.BlockId = source.BlockId; this.SendungId = source.SendungId; this.Reihenfolge = source.Reihenfolge; this.Id = source.Id; }
/// <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(ISendungZuProgrammBlock source, params string[] includedColumns) { if (includedColumns.Contains(SendungenZuProgrammBloeckeTable.SendungenZuProgrammBloeckeIdCol)) this.SendungenZuProgrammBloeckeId = source.SendungenZuProgrammBloeckeId; if (includedColumns.Contains(SendungenZuProgrammBloeckeTable.BlockIdCol)) this.BlockId = source.BlockId; if (includedColumns.Contains(SendungenZuProgrammBloeckeTable.SendungIdCol)) this.SendungId = source.SendungId; if (includedColumns.Contains(SendungenZuProgrammBloeckeTable.ReihenfolgeCol)) this.Reihenfolge = source.Reihenfolge; if (includedColumns.Contains(SendungenZuProgrammBloeckeTable.IdCol)) this.Id = source.Id; }
/// <summary> This method copy's each database field into the <paramref name="target"/> interface. </summary> public void Copy_To(ISendungZuProgrammBlock target, bool includePrimaryKey = false) { if (includePrimaryKey) target.SendungenZuProgrammBloeckeId = this.SendungenZuProgrammBloeckeId; target.BlockId = this.BlockId; target.SendungId = this.SendungId; target.Reihenfolge = this.Reihenfolge; target.Id = this.Id; }