/// <summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary> public void Copy_From(IImportAdresse source, bool includePrimaryKey = false) { if (includePrimaryKey) this.Id = source.Id; this.PLZ = source.PLZ; this.Ort = source.Ort; this.Strasse = source.Strasse; this.HNR = source.HNR; 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(IImportAdresse source, params string[] includedColumns) { if (includedColumns.Contains(ImportAdressenTable.IdCol)) this.Id = source.Id; if (includedColumns.Contains(ImportAdressenTable.PLZCol)) this.PLZ = source.PLZ; if (includedColumns.Contains(ImportAdressenTable.OrtCol)) this.Ort = source.Ort; if (includedColumns.Contains(ImportAdressenTable.StrasseCol)) this.Strasse = source.Strasse; if (includedColumns.Contains(ImportAdressenTable.HNRCol)) this.HNR = source.HNR; if (includedColumns.Contains(ImportAdressenTable.LastUpdateTokenCol)) this.LastUpdateToken = source.LastUpdateToken; }
/// <summary> This method copy's each database field into the <paramref name="target"/> interface. </summary> public void Copy_To(IImportAdresse target, bool includePrimaryKey = false) { if (includePrimaryKey) target.Id = this.Id; target.PLZ = this.PLZ; target.Ort = this.Ort; target.Strasse = this.Strasse; target.HNR = this.HNR; target.LastUpdateToken = this.LastUpdateToken; }