Microsoft
70-516 · Question #126
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create an application. You use the ADO.NET Entity Data Model (EDM) to define a Customer entity. You need to add a new…
The correct answer is B. Call the CreateObject method of the Customer object. CreateObject<T> Creates and returns an instance of the requested type.
Manipulating and Validating Data
Question
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create an application. You use the ADO.NET Entity Data Model (EDM) to define a Customer entity. You need to add a new Customer to the data store without setting all the customer's properties. What should you do?
Options
- ACall the Create method of the Customer object.
- BCall the CreateObject method of the Customer object.
- COverride the Create method for the Customer object.
- DOverride the SaveChanges method for the Customer object.
How the community answered
(26 responses)- A15% (4)
- B77% (20)
- C4% (1)
- D4% (1)
Explanation
CreateObject<T> Creates and returns an instance of the requested type.
Topics
#Entity Framework#CreateObject#EDM#entity creation
Community Discussion
No community discussion yet for this question.