You are writing a method to update the Customer reference field on a Sales order table record. You begin
by writing the following code:
class ExampleClass
{
/// <summary>
/// Update the Customer reference field on the Sales orders table.
/// </summary>
/// <param name = "_salesId">
/// Sales order to update
/// </param>
/// <param name = "_customerRef">
/// Updated Customer reference value
/// </param>
public static void updateSalesTableCustomerReference(SalesId _salesId,
CustRef _customerRef)
{
SalesTable salesTable;
}
}
Which statement will complete the method?
A . salesTable = SalesTable::find(_salesId);
salesTable.CustomerRef = _customerRef;
salesTable.update();
B . update_recordset salesTable
setting CustomerRef=_customerRef
where salesTable.salesid==_salesId;
C . salesTable = SalesTable::find(_salesId, true);
salesTable.CustomerRef = _customerRef;
salesTable.update();
D . update_recordset salesTable
setting SalesId = _salesId
where salesTable.CustomerRef == _customerRef;
Answer: C