Microsoft
70-516 · Question #2
70-516 Question #2: Real Exam Question with Answer & Explanation
Sign in or unlock 70-516 to reveal the answer and full explanation for question #2. The question stem and answer options stay visible for context.
Question
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create an application. The application uses the ADO.NET Entity Framework to model entities. You create an entity as shown in the following code fragment. <EntityType Name="ProductCategory"> <Key> <PropertyRef Name="ProductCategoryID" /> </Key> <Property Name="ProductCategoryID" Type="int" Nullable="false" StoreGeneraedPattern="Identity" /> <Property Name="ParentProductCategoryID" Type="int" /> <Property Name="Name" Type="nvarchar" Nullable="false" MaxLength="50" /> ... </EntityType> You need to provide two entity-tracking fields: - Rowguid that is automatically generated when the entity is created - ModifiedDate that is automatically set whenever the entity is updated. Which code fragment should you add to the .edmx file?
Options
- A<Property Name="rowguid" Type="uniqueidentifier" Nullable="false"
- B<Property Name="rowguid" Type="uniqueidentifier" Nullable="false"
- C<Property Name="rowguid" Type="uniqueidentifier" Nullable="false"
- D<Property Name="rowguid" Type="uniqueidentifier" Nullable="false"
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.