/// <summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary> public void Copy_From(IMBRWahl_User source, bool includePrimaryKey = false) { if (includePrimaryKey) this.NumericUserId = source.NumericUserId; this.UserName = source.UserName; }
/// <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(IMBRWahl_User source, params string[] includedColumns) { if (includedColumns.Contains(MBRWahl_UsersTable.NumericUserIdCol)) this.NumericUserId = source.NumericUserId; if (includedColumns.Contains(MBRWahl_UsersTable.UserNameCol)) this.UserName = source.UserName; }
/// <summary> This method copy's each database field into the <paramref name="target"/> interface. </summary> public void Copy_To(IMBRWahl_User target, bool includePrimaryKey = false) { if (includePrimaryKey) target.NumericUserId = this.NumericUserId; target.UserName = this.UserName; }