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