public static void Etikett(IAdresse obj) { Console.WriteLine("\n" + new string('*', 30)); Console.WriteLine("{0}", obj.Name); Console.WriteLine(obj.Anschrift); //<- geht dank überschriebener ToString()-Methode in der Struktur //Console.WriteLine("{0} {1}", obj.Anschrift.Straße, obj.Anschrift.Hausnummer); //Console.WriteLine("{0} {1}", obj.Anschrift.PLZ, obj.Anschrift.Ort); Console.WriteLine(new string('*', 30) + "\n"); }
/// <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(IAdresse source, params string[] includedColumns) { if (includedColumns.Contains(AdressenTable.IdCol)) this.Id = source.Id; if (includedColumns.Contains(AdressenTable.BereichCol)) this.Bereich = source.Bereich; if (includedColumns.Contains(AdressenTable.StiegeCol)) this.Stiege = source.Stiege; if (includedColumns.Contains(AdressenTable.StockCol)) this.Stock = source.Stock; if (includedColumns.Contains(AdressenTable.TuereCol)) this.Tuere = source.Tuere; if (includedColumns.Contains(AdressenTable.AdressenKurzbezeichnungCol)) this.AdressenKurzbezeichnung = source.AdressenKurzbezeichnung; if (includedColumns.Contains(AdressenTable.HausIdCol)) this.HausId = source.HausId; if (includedColumns.Contains(AdressenTable.GRG23AdressIdCol)) this.GRG23AdressId = source.GRG23AdressId; if (includedColumns.Contains(AdressenTable.LastUpdateTokenCol)) this.LastUpdateToken = source.LastUpdateToken; }
/// <summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary> public void Copy_From(IAdresse source, bool includePrimaryKey = false) { if (includePrimaryKey) this.Id = source.Id; this.Bereich = source.Bereich; this.Stiege = source.Stiege; this.Stock = source.Stock; this.Tuere = source.Tuere; this.AdressenKurzbezeichnung = source.AdressenKurzbezeichnung; this.HausId = source.HausId; this.GRG23AdressId = source.GRG23AdressId; this.LastUpdateToken = source.LastUpdateToken; }
/// <summary> This method copy's each database field into the <paramref name="target"/> interface. </summary> public void Copy_To(IAdresse target, bool includePrimaryKey = false) { if (includePrimaryKey) target.Id = this.Id; target.Bereich = this.Bereich; target.Stiege = this.Stiege; target.Stock = this.Stock; target.Tuere = this.Tuere; target.AdressenKurzbezeichnung = this.AdressenKurzbezeichnung; target.HausId = this.HausId; target.GRG23AdressId = this.GRG23AdressId; target.LastUpdateToken = this.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(IAdresse source, params string[] includedColumns) { if (includedColumns.Contains(AdressenTable.IdCol)) this.Id = source.Id; if (includedColumns.Contains(AdressenTable.BereichCol)) this.Bereich = source.Bereich; if (includedColumns.Contains(AdressenTable.AdressFullTextCol)) this.AdressFullText = source.AdressFullText; if (includedColumns.Contains(AdressenTable.StiegeCol)) this.Stiege = source.Stiege; if (includedColumns.Contains(AdressenTable.StockCol)) this.Stock = source.Stock; if (includedColumns.Contains(AdressenTable.TuereCol)) this.Tuere = source.Tuere; if (includedColumns.Contains(AdressenTable.AdressenKurzbezeichnungCol)) this.AdressenKurzbezeichnung = source.AdressenKurzbezeichnung; if (includedColumns.Contains(AdressenTable.HausIdCol)) this.HausId = source.HausId; if (includedColumns.Contains(AdressenTable.GRG23AdressIdCol)) this.GRG23AdressId = source.GRG23AdressId; if (includedColumns.Contains(AdressenTable.ModifyTimeStampCol)) this.ModifyTimeStamp = source.ModifyTimeStamp; if (includedColumns.Contains(AdressenTable.ProcessingStatusCol)) this.ProcessingStatus = source.ProcessingStatus; if (includedColumns.Contains(AdressenTable.LastModifiedByCol)) this.LastModifiedBy = source.LastModifiedBy; if (includedColumns.Contains(AdressenTable.CreatedByCol)) this.CreatedBy = source.CreatedBy; if (includedColumns.Contains(AdressenTable.AccessRightsIdCol)) this.AccessRightsId = source.AccessRightsId; if (includedColumns.Contains(AdressenTable.LastUpdateTokenCol)) this.LastUpdateToken = source.LastUpdateToken; }
/// <summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary> public void Copy_From(IAdresse source, bool includePrimaryKey = false) { if (includePrimaryKey) this.Id = source.Id; this.Bereich = source.Bereich; this.AdressFullText = source.AdressFullText; this.Stiege = source.Stiege; this.Stock = source.Stock; this.Tuere = source.Tuere; this.AdressenKurzbezeichnung = source.AdressenKurzbezeichnung; this.HausId = source.HausId; this.GRG23AdressId = source.GRG23AdressId; this.ModifyTimeStamp = source.ModifyTimeStamp; this.ProcessingStatus = source.ProcessingStatus; this.LastModifiedBy = source.LastModifiedBy; this.CreatedBy = source.CreatedBy; this.AccessRightsId = source.AccessRightsId; this.LastUpdateToken = source.LastUpdateToken; }
/// <summary> This method copy's each database field into the <paramref name="target"/> interface. </summary> public void Copy_To(IAdresse target, bool includePrimaryKey = false) { if (includePrimaryKey) target.Id = this.Id; target.Bereich = this.Bereich; target.AdressFullText = this.AdressFullText; target.Stiege = this.Stiege; target.Stock = this.Stock; target.Tuere = this.Tuere; target.AdressenKurzbezeichnung = this.AdressenKurzbezeichnung; target.HausId = this.HausId; target.GRG23AdressId = this.GRG23AdressId; target.ModifyTimeStamp = this.ModifyTimeStamp; target.ProcessingStatus = this.ProcessingStatus; target.LastModifiedBy = this.LastModifiedBy; target.CreatedBy = this.CreatedBy; target.AccessRightsId = this.AccessRightsId; target.LastUpdateToken = this.LastUpdateToken; }
public static void Erfasse(IAdresse obj, string straße, int hausnr, string plz, string ort) { obj.Anschrift = new Adresse { Straße = straße, Hausnummer = hausnr, PLZ = plz, Ort = ort }; }