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