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