/// <summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary> public void Copy_From(IArbeitsGruppe source, bool includePrimaryKey = false) { if (includePrimaryKey) this.Id = source.Id; this.NameId = source.NameId; this.LangName = source.LangName; this.Beschreibung = source.Beschreibung; this.Budget = source.Budget; this.WordUpRootId = source.WordUpRootId; this.OrtsTeile = source.OrtsTeile; this.SortOrder = source.SortOrder; this.UseForProjects = source.UseForProjects; 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(IArbeitsGruppe source, params string[] includedColumns) { if (includedColumns.Contains(ArbeitsGruppenTable.IdCol)) this.Id = source.Id; if (includedColumns.Contains(ArbeitsGruppenTable.NameIdCol)) this.NameId = source.NameId; if (includedColumns.Contains(ArbeitsGruppenTable.LangNameCol)) this.LangName = source.LangName; if (includedColumns.Contains(ArbeitsGruppenTable.BeschreibungCol)) this.Beschreibung = source.Beschreibung; if (includedColumns.Contains(ArbeitsGruppenTable.BudgetCol)) this.Budget = source.Budget; if (includedColumns.Contains(ArbeitsGruppenTable.WordUpRootIdCol)) this.WordUpRootId = source.WordUpRootId; if (includedColumns.Contains(ArbeitsGruppenTable.OrtsTeileCol)) this.OrtsTeile = source.OrtsTeile; if (includedColumns.Contains(ArbeitsGruppenTable.SortOrderCol)) this.SortOrder = source.SortOrder; if (includedColumns.Contains(ArbeitsGruppenTable.UseForProjectsCol)) this.UseForProjects = source.UseForProjects; if (includedColumns.Contains(ArbeitsGruppenTable.LastUpdateTokenCol)) this.LastUpdateToken = source.LastUpdateToken; }
/// <summary> This method copy's each database field into the <paramref name="target"/> interface. </summary> public void Copy_To(IArbeitsGruppe target, bool includePrimaryKey = false) { if (includePrimaryKey) target.Id = this.Id; target.NameId = this.NameId; target.LangName = this.LangName; target.Beschreibung = this.Beschreibung; target.Budget = this.Budget; target.WordUpRootId = this.WordUpRootId; target.OrtsTeile = this.OrtsTeile; target.SortOrder = this.SortOrder; target.UseForProjects = this.UseForProjects; target.LastUpdateToken = this.LastUpdateToken; }