/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromWlpasswdBase(ref DataRow row, WlpasswdBase entity) { row.SetField("pwmaxdays", entity.pwmaxdays); row.SetField("pwmindays", entity.pwmindays); row.SetField("pwmaxlength", entity.pwmaxlength); row.SetField("pwminlength", entity.pwminlength); row.SetField("pwminnumeric", entity.pwminnumeric); row.SetField("pwminspecial", entity.pwminspecial); row.SetField("pwminprev", entity.pwminprev); row.SetField("pwminalpha", entity.pwminalpha); row.SetField("custom_data1", entity.customData1); row.SetField("custom_data2", entity.customData2); row.SetField("custom_data3", entity.customData3); row.SetField("custom_data4", entity.customData4); row.SetField("custom_data5", entity.customData5); row.SetField("trans_user", entity.transUser); row.SetField("trans_date", entity.transDate); row.SetField("trans_proc", entity.transProc); row.SetField("emp_num", entity.empNum); row.SetField("wlpasswdRowID", entity.rowID.ToByteArray()); }
/// <summary> /// Build a minimal row from a class (key fields only) /// </summary> public static void BuildMinimalRow(ref DataRow row, WlpasswdBase entity) { row.SetField("wlpasswdRowID", entity.rowID.ToByteArray()); }