which code segment should you replace the body of the SaveChanges() method in the FlightInfoContext.es file?
Errors occasionally occur when saving data using the FlightInfoContext ADO.NET Entity
Framework context. Updates to the data are being lost when an error occurs.
You need to ensure that data is still saved when an error occurs by retrying the operation.
No more than five retries should be performed.
With which code segment should you replace the body of the SaveChanges() method in the
FlightInfoContext.es file?
which code segment should you replace line EQ64?
The GetExternalOrder() method in the ExternalQueueService service is throwing a runtime
error. The method must query the database for a record that matches the orderNum
parameter passed to the method.
You need to modify the queryString string to retrieve the record.
With which code segment should you replace line EQ64?
How should you build the method?
DRAG DROP
The GetVendorPolicy() private method in the ProcessedOrderController controller is
returning a
CacheItemPolicy object with default values. The returned policy must expire if the external
file located at C:\Triggers\VendorTrigger.txt has been modified or the timeout outlined in the
technical requirements is reached.
You need to return the policy.
How should you build the method? (To answer, drag the appropriate code segments to the
correct location or locations in the answer area. Each code segment may be used once,
more than once, or not at all. You may need to drag the split bar between panes or scroll to
view content.)
You need to modify the IShippingService interface and the ShippingInfo class…
DRAG DROP
You add a class named ShippingInfo.
You need to modify the IShippingService interface and the ShippingInfo class to meet the
technical requirements.
What should you do? (To answer, drag the appropriate code segments to the correct
location or locations in the answer area. Each code segment may be used once, more than
once, or not at all. You may need to drag the split bar between panes or scroll to view
content.)
You need to create the ShippingContext class in the ShippingAddress.es file to meet the requirements
DRAG DROP
You need to create the ShippingContext class in the ShippingAddress.es file to meet the
requirements.
What should you do? (To answer, drag the appropriate code segments to the correct
location or locations in the answer area. Each code segment may be used once, more than
once, or not at all. You may need to drag the split bar between panes or scroll to view
content.)
Which code segment should you use?
You need to complete the GetProcessedOrders() action in the ProcessedOrderController controller…
DRAG DROP
You need to complete the GetProcessedOrders() action in the ProcessedOrderController
controller to meet the requirements.
What should you do? (To answer, drag the appropriate code segments to the correct
location or locations in the answer area. Each code segment may be used once, more than
once, or not at all. You may need to drag the split bar between panes or scroll to view
content.)
You need to modify the action to populate the view with data
DRAG DROP
The GetQueueItems() action in the InboundQueueController controller is not populating the
view with data. The action must populate the view with data by calling the
GetExternalOrders() method in the ExternalQueueService service using the ChannelFactory
class.
You need to modify the action to populate the view with data.
What should you do? (To answer, drag the appropriate code segments to the correct
location or locations in the answer area. Each code segment may be used once, more than
once, or not at all. You may need to drag the split bar between panes or scroll to view
content.)
Which code segments can you insert at line EQ45 to achieve this goal?
The DeleteExternalOrder() method in the ExternalQueueService service is not throwing a
FaultException exception as defined by the FaultContractAttribute attribute in the
IExternalQueueService.cs file.
You need to throw the FaultException exception.
Which code segments can you insert at line EQ45 to achieve this goal? (Each correct
answer presents a complete solution. Chose all that apply)
You need to modify the GetExternalOrders() method to return the correct data
DRAG DROP
The GetExternalOrders() method must use members of the EntityClient namespace to query
the database for all records in the InboundQueue entity.
You need to modify the GetExternalOrders() method to return the correct data.
What should you do? (To answer, drag the appropriate code segments to the correct
location or locations in the answer area. Each code segment may be used once, more than
once, or not at all. You may need to drag the split bar between panes or scroll to view
content.)