nerdexam
Microsoft

70-516 · Question #179

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create an application. You use Plain Old CLR objects (POCO) to model your entities. The application communicates with a…

Sign in or unlock 70-516 to reveal the answer and full explanation for question #179. The question stem and answer options stay visible for context.

Consuming and Exposing Data

Question

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create an application. You use Plain Old CLR objects (POCO) to model your entities. The application communicates with a Windows Communication Foundation (WCF) Data Services service. You need to ensure that entities can be sent to the service as XML. What should you do?

Options

  • AApply the virtual keyword to the entity properties.
  • BApply the [Serializable] attribute to the entities.
  • CApply the [DataContract(IsReference = true)] attribute to the entities.
  • DApply the [DataContract(IsReference = false)] attribute to the entities.

Unlock 70-516 to see the answer

You've previewed enough free 70-516 questions. Unlock 70-516 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#WCF Data Services#POCO#DataContract#XML serialization
Full 70-516 Practice