/// <summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary> public void Copy_From(IWarenGruppe source, bool includePrimaryKey = false) { if (includePrimaryKey) this.Id = source.Id; this.NameId = source.NameId; this.Text = source.Text; this.Beschreibung = source.Beschreibung; this.StartText = source.StartText; this.StopText = source.StopText; this.OrganisationsId = source.OrganisationsId; this.SortOrder = source.SortOrder; this.PictureLink = source.PictureLink; }
/// <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(IWarenGruppe source, params string[] includedColumns) { if (includedColumns.Contains(WarenGruppenTable.IdCol)) this.Id = source.Id; if (includedColumns.Contains(WarenGruppenTable.NameIdCol)) this.NameId = source.NameId; if (includedColumns.Contains(WarenGruppenTable.TextCol)) this.Text = source.Text; if (includedColumns.Contains(WarenGruppenTable.BeschreibungCol)) this.Beschreibung = source.Beschreibung; if (includedColumns.Contains(WarenGruppenTable.StartTextCol)) this.StartText = source.StartText; if (includedColumns.Contains(WarenGruppenTable.StopTextCol)) this.StopText = source.StopText; if (includedColumns.Contains(WarenGruppenTable.OrganisationsIdCol)) this.OrganisationsId = source.OrganisationsId; if (includedColumns.Contains(WarenGruppenTable.SortOrderCol)) this.SortOrder = source.SortOrder; if (includedColumns.Contains(WarenGruppenTable.PictureLinkCol)) this.PictureLink = source.PictureLink; }
/// <summary> This method copy's each database field into the <paramref name="target"/> interface. </summary> public void Copy_To(IWarenGruppe target, bool includePrimaryKey = false) { if (includePrimaryKey) target.Id = this.Id; target.NameId = this.NameId; target.Text = this.Text; target.Beschreibung = this.Beschreibung; target.StartText = this.StartText; target.StopText = this.StopText; target.OrganisationsId = this.OrganisationsId; target.SortOrder = this.SortOrder; target.PictureLink = this.PictureLink; }