/// <summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary> public void Copy_From(IPersonZuProjekt source, bool includePrimaryKey = false) { if (includePrimaryKey) this.Id = source.Id; this.Type = source.Type; this.PersonenTypId = source.PersonenTypId; this.PersonenId = source.PersonenId; this.ProjekteId = source.ProjekteId; this.LastUpdateToken = source.LastUpdateToken; this.WordUpId = source.WordUpId; }
/// <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(IPersonZuProjekt source, params string[] includedColumns) { if (includedColumns.Contains(PersonenZuProjektenTable.IdCol)) this.Id = source.Id; if (includedColumns.Contains(PersonenZuProjektenTable.TypeCol)) this.Type = source.Type; if (includedColumns.Contains(PersonenZuProjektenTable.PersonenTypIdCol)) this.PersonenTypId = source.PersonenTypId; if (includedColumns.Contains(PersonenZuProjektenTable.PersonenIdCol)) this.PersonenId = source.PersonenId; if (includedColumns.Contains(PersonenZuProjektenTable.ProjekteIdCol)) this.ProjekteId = source.ProjekteId; if (includedColumns.Contains(PersonenZuProjektenTable.LastUpdateTokenCol)) this.LastUpdateToken = source.LastUpdateToken; if (includedColumns.Contains(PersonenZuProjektenTable.WordUpIdCol)) this.WordUpId = source.WordUpId; }
/// <summary> This method copy's each database field into the <paramref name="target"/> interface. </summary> public void Copy_To(IPersonZuProjekt target, bool includePrimaryKey = false) { if (includePrimaryKey) target.Id = this.Id; target.Type = this.Type; target.PersonenTypId = this.PersonenTypId; target.PersonenId = this.PersonenId; target.ProjekteId = this.ProjekteId; target.LastUpdateToken = this.LastUpdateToken; target.WordUpId = this.WordUpId; }