/// <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(IMMElementLayout source, params string[] includedColumns) { if (includedColumns.Contains(MMElementeLayoutTable.IdCol)) this.Id = source.Id; if (includedColumns.Contains(MMElementeLayoutTable.MMPartsElementeLayoutConnectorIdCol)) this.MMPartsElementeLayoutConnectorId = source.MMPartsElementeLayoutConnectorId; if (includedColumns.Contains(MMElementeLayoutTable.NameIdCol)) this.NameId = source.NameId; if (includedColumns.Contains(MMElementeLayoutTable.ItemNameCol)) this.ItemName = source.ItemName; if (includedColumns.Contains(MMElementeLayoutTable.TypIdCol)) this.TypId = source.TypId; if (includedColumns.Contains(MMElementeLayoutTable.PositionLeftCol)) this.PositionLeft = source.PositionLeft; if (includedColumns.Contains(MMElementeLayoutTable.PositionRightCol)) this.PositionRight = source.PositionRight; if (includedColumns.Contains(MMElementeLayoutTable.PositionTopCol)) this.PositionTop = source.PositionTop; if (includedColumns.Contains(MMElementeLayoutTable.PositionBottomCol)) this.PositionBottom = source.PositionBottom; if (includedColumns.Contains(MMElementeLayoutTable.RotationCol)) this.Rotation = source.Rotation; if (includedColumns.Contains(MMElementeLayoutTable.BackGroundCol)) this.BackGround = source.BackGround; if (includedColumns.Contains(MMElementeLayoutTable.FontDescriptionCol)) this.FontDescription = source.FontDescription; if (includedColumns.Contains(MMElementeLayoutTable.FontStyleCol)) this.FontStyle = source.FontStyle; if (includedColumns.Contains(MMElementeLayoutTable.FontColorCol)) this.FontColor = source.FontColor; if (includedColumns.Contains(MMElementeLayoutTable.FontSizeCol)) this.FontSize = source.FontSize; if (includedColumns.Contains(MMElementeLayoutTable.AppendCol)) this.Append = source.Append; if (includedColumns.Contains(MMElementeLayoutTable.ForceNewLineCol)) this.ForceNewLine = source.ForceNewLine; if (includedColumns.Contains(MMElementeLayoutTable.AlignmentCol)) this.Alignment = source.Alignment; if (includedColumns.Contains(MMElementeLayoutTable.ConvertContentCol)) this.ConvertContent = source.ConvertContent; if (includedColumns.Contains(MMElementeLayoutTable.ConverterParameterCol)) this.ConverterParameter = source.ConverterParameter; if (includedColumns.Contains(MMElementeLayoutTable.TextCol)) this.Text = source.Text; if (includedColumns.Contains(MMElementeLayoutTable.TemplatePatternCol)) this.TemplatePattern = source.TemplatePattern; if (includedColumns.Contains(MMElementeLayoutTable.LastUpdateTokenCol)) this.LastUpdateToken = source.LastUpdateToken; }
/// <summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary> public void Copy_From(IMMElementLayout source, bool includePrimaryKey = false) { if (includePrimaryKey) this.Id = source.Id; this.MMPartsElementeLayoutConnectorId = source.MMPartsElementeLayoutConnectorId; this.NameId = source.NameId; this.ItemName = source.ItemName; this.TypId = source.TypId; this.PositionLeft = source.PositionLeft; this.PositionRight = source.PositionRight; this.PositionTop = source.PositionTop; this.PositionBottom = source.PositionBottom; this.Rotation = source.Rotation; this.BackGround = source.BackGround; this.FontDescription = source.FontDescription; this.FontStyle = source.FontStyle; this.FontColor = source.FontColor; this.FontSize = source.FontSize; this.Append = source.Append; this.ForceNewLine = source.ForceNewLine; this.Alignment = source.Alignment; this.ConvertContent = source.ConvertContent; this.ConverterParameter = source.ConverterParameter; this.Text = source.Text; this.TemplatePattern = source.TemplatePattern; this.LastUpdateToken = source.LastUpdateToken; }