/// <summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary> public void Copy_From(ITermin source, bool includePrimaryKey = false) { if (includePrimaryKey) this.Id = source.Id; this.NameId = source.NameId; this.Von = source.Von; this.Bis = source.Bis; this.Beschreibung = source.Beschreibung; this.TermineTypId = source.TermineTypId; this.TermineTypName = source.TermineTypName; this.WordUpRootId = source.WordUpRootId; this.OrteId = source.OrteId; this.GoogleEventId = source.GoogleEventId; 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(ITermin source, params string[] includedColumns) { if (includedColumns.Contains(TermineTable.IdCol)) this.Id = source.Id; if (includedColumns.Contains(TermineTable.NameIdCol)) this.NameId = source.NameId; if (includedColumns.Contains(TermineTable.VonCol)) this.Von = source.Von; if (includedColumns.Contains(TermineTable.BisCol)) this.Bis = source.Bis; if (includedColumns.Contains(TermineTable.BeschreibungCol)) this.Beschreibung = source.Beschreibung; if (includedColumns.Contains(TermineTable.TermineTypIdCol)) this.TermineTypId = source.TermineTypId; if (includedColumns.Contains(TermineTable.TermineTypNameCol)) this.TermineTypName = source.TermineTypName; if (includedColumns.Contains(TermineTable.WordUpRootIdCol)) this.WordUpRootId = source.WordUpRootId; if (includedColumns.Contains(TermineTable.OrteIdCol)) this.OrteId = source.OrteId; if (includedColumns.Contains(TermineTable.GoogleEventIdCol)) this.GoogleEventId = source.GoogleEventId; if (includedColumns.Contains(TermineTable.LastUpdateTokenCol)) this.LastUpdateToken = source.LastUpdateToken; }
/// <summary> This method copy's each database field into the <paramref name="target"/> interface. </summary> public void Copy_To(ITermin target, bool includePrimaryKey = false) { if (includePrimaryKey) target.Id = this.Id; target.NameId = this.NameId; target.Von = this.Von; target.Bis = this.Bis; target.Beschreibung = this.Beschreibung; target.TermineTypId = this.TermineTypId; target.TermineTypName = this.TermineTypName; target.WordUpRootId = this.WordUpRootId; target.OrteId = this.OrteId; target.GoogleEventId = this.GoogleEventId; target.LastUpdateToken = this.LastUpdateToken; }