/// <summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary> public void Copy_From(IMMForeignElementTyp source, bool includePrimaryKey = false) { if (includePrimaryKey) this.Id = source.Id; this.TypNameId = source.TypNameId; this.ForeignProcessor = source.ForeignProcessor; this.Description = source.Description; 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(IMMForeignElementTyp source, params string[] includedColumns) { if (includedColumns.Contains(MMForeignElementTypenTable.IdCol)) this.Id = source.Id; if (includedColumns.Contains(MMForeignElementTypenTable.TypNameIdCol)) this.TypNameId = source.TypNameId; if (includedColumns.Contains(MMForeignElementTypenTable.ForeignProcessorCol)) this.ForeignProcessor = source.ForeignProcessor; if (includedColumns.Contains(MMForeignElementTypenTable.DescriptionCol)) this.Description = source.Description; if (includedColumns.Contains(MMForeignElementTypenTable.LastUpdateTokenCol)) this.LastUpdateToken = source.LastUpdateToken; }
/// <summary> This method copy's each database field into the <paramref name="target"/> interface. </summary> public void Copy_To(IMMForeignElementTyp target, bool includePrimaryKey = false) { if (includePrimaryKey) target.Id = this.Id; target.TypNameId = this.TypNameId; target.ForeignProcessor = this.ForeignProcessor; target.Description = this.Description; target.LastUpdateToken = this.LastUpdateToken; }