/// <summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary> public void Copy_From(IMMProgrammBlockToMMSlot source, bool includePrimaryKey = false) { if (includePrimaryKey) this.Id = source.Id; this.NameId = source.NameId; this.MMProgrammBlockId = source.MMProgrammBlockId; this.MMSlotId = source.MMSlotId; this.TypId = source.TypId; this.MaximalDurationInSeconds = source.MaximalDurationInSeconds; this.SortOrder = source.SortOrder; 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(IMMProgrammBlockToMMSlot source, params string[] includedColumns) { if (includedColumns.Contains(MMProgrammBlockToMMSlotsTable.IdCol)) this.Id = source.Id; if (includedColumns.Contains(MMProgrammBlockToMMSlotsTable.NameIdCol)) this.NameId = source.NameId; if (includedColumns.Contains(MMProgrammBlockToMMSlotsTable.MMProgrammBlockIdCol)) this.MMProgrammBlockId = source.MMProgrammBlockId; if (includedColumns.Contains(MMProgrammBlockToMMSlotsTable.MMSlotIdCol)) this.MMSlotId = source.MMSlotId; if (includedColumns.Contains(MMProgrammBlockToMMSlotsTable.TypIdCol)) this.TypId = source.TypId; if (includedColumns.Contains(MMProgrammBlockToMMSlotsTable.MaximalDurationInSecondsCol)) this.MaximalDurationInSeconds = source.MaximalDurationInSeconds; if (includedColumns.Contains(MMProgrammBlockToMMSlotsTable.SortOrderCol)) this.SortOrder = source.SortOrder; if (includedColumns.Contains(MMProgrammBlockToMMSlotsTable.LastUpdateTokenCol)) this.LastUpdateToken = source.LastUpdateToken; }
/// <summary> This method copy's each database field into the <paramref name="target"/> interface. </summary> public void Copy_To(IMMProgrammBlockToMMSlot target, bool includePrimaryKey = false) { if (includePrimaryKey) target.Id = this.Id; target.NameId = this.NameId; target.MMProgrammBlockId = this.MMProgrammBlockId; target.MMSlotId = this.MMSlotId; target.TypId = this.TypId; target.MaximalDurationInSeconds = this.MaximalDurationInSeconds; target.SortOrder = this.SortOrder; target.LastUpdateToken = this.LastUpdateToken; }