/// <summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary> public void Copy_From(IPersonenTyp source, bool includePrimaryKey = false) { if (includePrimaryKey) this.Id = source.Id; this.PersonenTypColumn = source.PersonenTypColumn; this.SortOrder = source.SortOrder; this.Beschreibung = source.Beschreibung; this.OrganisationsTypId = source.OrganisationsTypId; 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(IPersonenTyp source, params string[] includedColumns) { if (includedColumns.Contains(PersonenTypenTable.IdCol)) this.Id = source.Id; if (includedColumns.Contains(PersonenTypenTable.PersonenTypColumnCol)) this.PersonenTypColumn = source.PersonenTypColumn; if (includedColumns.Contains(PersonenTypenTable.SortOrderCol)) this.SortOrder = source.SortOrder; if (includedColumns.Contains(PersonenTypenTable.BeschreibungCol)) this.Beschreibung = source.Beschreibung; if (includedColumns.Contains(PersonenTypenTable.OrganisationsTypIdCol)) this.OrganisationsTypId = source.OrganisationsTypId; if (includedColumns.Contains(PersonenTypenTable.LastUpdateTokenCol)) this.LastUpdateToken = source.LastUpdateToken; }
/// <summary> This method copy's each database field into the <paramref name="target"/> interface. </summary> public void Copy_To(IPersonenTyp target, bool includePrimaryKey = false) { if (includePrimaryKey) target.Id = this.Id; target.PersonenTypColumn = this.PersonenTypColumn; target.SortOrder = this.SortOrder; target.Beschreibung = this.Beschreibung; target.OrganisationsTypId = this.OrganisationsTypId; target.LastUpdateToken = this.LastUpdateToken; }