/// <summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary> public void Copy_From(IZustaendigkeit source, bool includePrimaryKey = false) { if (includePrimaryKey) this.Id = source.Id; this.NameId = source.NameId; this.Beschreibung = source.Beschreibung; 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(IZustaendigkeit source, params string[] includedColumns) { if (includedColumns.Contains(ZustaendigkeitenTable.IdCol)) this.Id = source.Id; if (includedColumns.Contains(ZustaendigkeitenTable.NameIdCol)) this.NameId = source.NameId; if (includedColumns.Contains(ZustaendigkeitenTable.BeschreibungCol)) this.Beschreibung = source.Beschreibung; if (includedColumns.Contains(ZustaendigkeitenTable.LastUpdateTokenCol)) this.LastUpdateToken = source.LastUpdateToken; }
/// <summary> This method copy's each database field into the <paramref name="target"/> interface. </summary> public void Copy_To(IZustaendigkeit target, bool includePrimaryKey = false) { if (includePrimaryKey) target.Id = this.Id; target.NameId = this.NameId; target.Beschreibung = this.Beschreibung; target.LastUpdateToken = this.LastUpdateToken; }