/// <summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary> public void Copy_From(IWebServiceUser source, bool includePrimaryKey = false) { if (includePrimaryKey) this.Id = source.Id; this.UserName = source.UserName; this.PassWort = source.PassWort; this.Description = source.Description; this.FamilienName = source.FamilienName; this.Vorname = source.Vorname; }
/// <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(IWebServiceUser source, params string[] includedColumns) { if (includedColumns.Contains(WebServiceUsersTable.IdCol)) this.Id = source.Id; if (includedColumns.Contains(WebServiceUsersTable.UserNameCol)) this.UserName = source.UserName; if (includedColumns.Contains(WebServiceUsersTable.PassWortCol)) this.PassWort = source.PassWort; if (includedColumns.Contains(WebServiceUsersTable.DescriptionCol)) this.Description = source.Description; if (includedColumns.Contains(WebServiceUsersTable.FamilienNameCol)) this.FamilienName = source.FamilienName; if (includedColumns.Contains(WebServiceUsersTable.VornameCol)) this.Vorname = source.Vorname; }
/// <summary> This method copy's each database field into the <paramref name="target"/> interface. </summary> public void Copy_To(IWebServiceUser target, bool includePrimaryKey = false) { if (includePrimaryKey) target.Id = this.Id; target.UserName = this.UserName; target.PassWort = this.PassWort; target.Description = this.Description; target.FamilienName = this.FamilienName; target.Vorname = this.Vorname; }