/// <summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary> public void Copy_From(IMMPartsElementeLayoutConnector source, bool includePrimaryKey = false) { if (includePrimaryKey) this.Id = source.Id; this.MMPartId = source.MMPartId; this.MMElementId = source.MMElementId; this.MMLayoutId = source.MMLayoutId; this.PartsElementeLayoutConnectorTypId = source.PartsElementeLayoutConnectorTypId; this.ProcessingOrder = source.ProcessingOrder; this.TextToProcess = source.TextToProcess; 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(IMMPartsElementeLayoutConnector source, params string[] includedColumns) { if (includedColumns.Contains(MMPartsElementeLayoutConnectorenTable.IdCol)) this.Id = source.Id; if (includedColumns.Contains(MMPartsElementeLayoutConnectorenTable.MMPartIdCol)) this.MMPartId = source.MMPartId; if (includedColumns.Contains(MMPartsElementeLayoutConnectorenTable.MMElementIdCol)) this.MMElementId = source.MMElementId; if (includedColumns.Contains(MMPartsElementeLayoutConnectorenTable.MMLayoutIdCol)) this.MMLayoutId = source.MMLayoutId; if (includedColumns.Contains(MMPartsElementeLayoutConnectorenTable.PartsElementeLayoutConnectorTypIdCol)) this.PartsElementeLayoutConnectorTypId = source.PartsElementeLayoutConnectorTypId; if (includedColumns.Contains(MMPartsElementeLayoutConnectorenTable.ProcessingOrderCol)) this.ProcessingOrder = source.ProcessingOrder; if (includedColumns.Contains(MMPartsElementeLayoutConnectorenTable.TextToProcessCol)) this.TextToProcess = source.TextToProcess; if (includedColumns.Contains(MMPartsElementeLayoutConnectorenTable.LastUpdateTokenCol)) this.LastUpdateToken = source.LastUpdateToken; }
/// <summary> This method copy's each database field into the <paramref name="target"/> interface. </summary> public void Copy_To(IMMPartsElementeLayoutConnector target, bool includePrimaryKey = false) { if (includePrimaryKey) target.Id = this.Id; target.MMPartId = this.MMPartId; target.MMElementId = this.MMElementId; target.MMLayoutId = this.MMLayoutId; target.PartsElementeLayoutConnectorTypId = this.PartsElementeLayoutConnectorTypId; target.ProcessingOrder = this.ProcessingOrder; target.TextToProcess = this.TextToProcess; target.LastUpdateToken = this.LastUpdateToken; }