/// <summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary> public void Copy_From(ISchueleradresse source, bool includePrimaryKey = false) { if (includePrimaryKey) this.RowId = source.RowId; this.Klasse = source.Klasse; this.FamilienName = source.FamilienName; this.Vorname = source.Vorname; this.TelefonNummern = source.TelefonNummern; this.EMail = source.EMail; this.PLZ = source.PLZ; this.Ort = source.Ort; this.Strasse = source.Strasse; this.HNR = source.HNR; this.Id = source.Id; this.AdressId = source.AdressId; this.OldAdressId = source.OldAdressId; this.OldPersonId = source.OldPersonId; 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(ISchueleradresse source, params string[] includedColumns) { if (includedColumns.Contains(SchueleradressenTable.RowIdCol)) this.RowId = source.RowId; if (includedColumns.Contains(SchueleradressenTable.KlasseCol)) this.Klasse = source.Klasse; if (includedColumns.Contains(SchueleradressenTable.FamilienNameCol)) this.FamilienName = source.FamilienName; if (includedColumns.Contains(SchueleradressenTable.VornameCol)) this.Vorname = source.Vorname; if (includedColumns.Contains(SchueleradressenTable.TelefonNummernCol)) this.TelefonNummern = source.TelefonNummern; if (includedColumns.Contains(SchueleradressenTable.EMailCol)) this.EMail = source.EMail; if (includedColumns.Contains(SchueleradressenTable.PLZCol)) this.PLZ = source.PLZ; if (includedColumns.Contains(SchueleradressenTable.OrtCol)) this.Ort = source.Ort; if (includedColumns.Contains(SchueleradressenTable.StrasseCol)) this.Strasse = source.Strasse; if (includedColumns.Contains(SchueleradressenTable.HNRCol)) this.HNR = source.HNR; if (includedColumns.Contains(SchueleradressenTable.IdCol)) this.Id = source.Id; if (includedColumns.Contains(SchueleradressenTable.AdressIdCol)) this.AdressId = source.AdressId; if (includedColumns.Contains(SchueleradressenTable.OldAdressIdCol)) this.OldAdressId = source.OldAdressId; if (includedColumns.Contains(SchueleradressenTable.OldPersonIdCol)) this.OldPersonId = source.OldPersonId; if (includedColumns.Contains(SchueleradressenTable.LastUpdateTokenCol)) this.LastUpdateToken = source.LastUpdateToken; }
/// <summary> This method copy's each database field into the <paramref name="target"/> interface. </summary> public void Copy_To(ISchueleradresse target, bool includePrimaryKey = false) { if (includePrimaryKey) target.RowId = this.RowId; target.Klasse = this.Klasse; target.FamilienName = this.FamilienName; target.Vorname = this.Vorname; target.TelefonNummern = this.TelefonNummern; target.EMail = this.EMail; target.PLZ = this.PLZ; target.Ort = this.Ort; target.Strasse = this.Strasse; target.HNR = this.HNR; target.Id = this.Id; target.AdressId = this.AdressId; target.OldAdressId = this.OldAdressId; target.OldPersonId = this.OldPersonId; target.LastUpdateToken = this.LastUpdateToken; }