Microsoft
70-516 · Question #47
You use Microsoft Visual Studio 2010 and .NET Framework 4.0 to develop an application. You use entity Framework Designer to create an Entity Data Model from an existing database by using the…
The correct answer is B. Add the property in a partial class named Product in a new source file. See the full explanation below for the reasoning.
Question
You use Microsoft Visual Studio 2010 and .NET Framework 4.0 to develop an application. You use entity Framework Designer to create an Entity Data Model from an existing database by using the Generate From Database wizard. The model contains an entity type named Product. The Product type requires an additional property that is not mapped to database colomn. You need to add the property to product. What should you do?
Options
- AAdd the property in the generated class file, and select Run Custom Tool from the solution
- BAdd the property in a partial class named Product in a new source file.
- CCreate a comlex type with the name of the property in the Entity Framework Designer.
- DCreate a function import with the name of property in the Entity Framework Designer.
How the community answered
(42 responses)- A14% (6)
- B74% (31)
- C10% (4)
- D2% (1)
Community Discussion
No community discussion yet for this question.