/// <summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary> public void Copy_From(IOrganisationsTyp source, bool includePrimaryKey = false) { if (includePrimaryKey) this.Id = source.Id; this.Bereich = source.Bereich; this.OrganisationsTypColumn = source.OrganisationsTypColumn; this.TypBeschreibung = source.TypBeschreibung; 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(IOrganisationsTyp source, params string[] includedColumns) { if (includedColumns.Contains(OrganisationsTypenTable.IdCol)) this.Id = source.Id; if (includedColumns.Contains(OrganisationsTypenTable.BereichCol)) this.Bereich = source.Bereich; if (includedColumns.Contains(OrganisationsTypenTable.OrganisationsTypColumnCol)) this.OrganisationsTypColumn = source.OrganisationsTypColumn; if (includedColumns.Contains(OrganisationsTypenTable.TypBeschreibungCol)) this.TypBeschreibung = source.TypBeschreibung; if (includedColumns.Contains(OrganisationsTypenTable.LastUpdateTokenCol)) this.LastUpdateToken = source.LastUpdateToken; }
/// <summary> This method copy's each database field into the <paramref name="target"/> interface. </summary> public void Copy_To(IOrganisationsTyp target, bool includePrimaryKey = false) { if (includePrimaryKey) target.Id = this.Id; target.Bereich = this.Bereich; target.OrganisationsTypColumn = this.OrganisationsTypColumn; target.TypBeschreibung = this.TypBeschreibung; target.LastUpdateToken = this.LastUpdateToken; }