/// <summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary> public void Copy_From(IPersonInEinerOrganisation source, bool includePrimaryKey = false) { if (includePrimaryKey) this.Id = source.Id; this.OrganisationsId = source.OrganisationsId; this.NameId = source.NameId; this.PersonenId = source.PersonenId; this.PersonenTypId = source.PersonenTypId; this.ZusatzInformation1 = source.ZusatzInformation1; this.ZusatzInformation2 = source.ZusatzInformation2; this.ZusatzInformation3 = source.ZusatzInformation3; 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(IPersonInEinerOrganisation source, params string[] includedColumns) { if (includedColumns.Contains(PersonenInEinerOrganisationTable.IdCol)) this.Id = source.Id; if (includedColumns.Contains(PersonenInEinerOrganisationTable.OrganisationsIdCol)) this.OrganisationsId = source.OrganisationsId; if (includedColumns.Contains(PersonenInEinerOrganisationTable.NameIdCol)) this.NameId = source.NameId; if (includedColumns.Contains(PersonenInEinerOrganisationTable.PersonenIdCol)) this.PersonenId = source.PersonenId; if (includedColumns.Contains(PersonenInEinerOrganisationTable.PersonenTypIdCol)) this.PersonenTypId = source.PersonenTypId; if (includedColumns.Contains(PersonenInEinerOrganisationTable.ZusatzInformation1Col)) this.ZusatzInformation1 = source.ZusatzInformation1; if (includedColumns.Contains(PersonenInEinerOrganisationTable.ZusatzInformation2Col)) this.ZusatzInformation2 = source.ZusatzInformation2; if (includedColumns.Contains(PersonenInEinerOrganisationTable.ZusatzInformation3Col)) this.ZusatzInformation3 = source.ZusatzInformation3; if (includedColumns.Contains(PersonenInEinerOrganisationTable.LastUpdateTokenCol)) this.LastUpdateToken = source.LastUpdateToken; }
/// <summary> This method copy's each database field into the <paramref name="target"/> interface. </summary> public void Copy_To(IPersonInEinerOrganisation target, bool includePrimaryKey = false) { if (includePrimaryKey) target.Id = this.Id; target.OrganisationsId = this.OrganisationsId; target.NameId = this.NameId; target.PersonenId = this.PersonenId; target.PersonenTypId = this.PersonenTypId; target.ZusatzInformation1 = this.ZusatzInformation1; target.ZusatzInformation2 = this.ZusatzInformation2; target.ZusatzInformation3 = this.ZusatzInformation3; target.LastUpdateToken = this.LastUpdateToken; }