nerdexam
Microsoft

70-516 · Question #138

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create an application. You use Microsoft ADO.NET Entity Data Model (EDM) to model entities. You create an entity named Person…

The correct answer is A. Create a new complex type named CAddress that contains the properties for city, region. See the full explanation below for the reasoning.

Question

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create an application. You use Microsoft ADO.NET Entity Data Model (EDM) to model entities. You create an entity named Person with a schema defined by the following XML fragment. <EntityType Name="CPerson"> <Key> <PropertyRef Name="PersonId" /> </Key> <Property Name="PersonId" Type="Int32" Nullable="false" /> <Property Name="CompanyName" Type="String" /> <Property Name="ContactName" Type="String" /> <Property Name="ContactTitle" Type="String" /> <Property Name="Address" Type="String" /> </EntityType> You need to ensure that entities within the application are able to add properties related to the city, region, and country of Person's address. What should you do?

Options

  • ACreate a new complex type named CAddress that contains the properties for city, region,
  • BCreate a SubEntity named Address.
  • CCreate a new entity named Address.
  • DCreate a view named Name that returns city, region, and country along with person IDs.

How the community answered

(47 responses)
  • A
    74% (35)
  • B
    4% (2)
  • C
    13% (6)
  • D
    9% (4)

Community Discussion

No community discussion yet for this question.

Full 70-516 Practice