PrepAway - Latest Free Exam Questions & Answers

What should you do?

There is MS Visual Studio 2010 and MS .NET Framework 4 application PassGuideApp.
PassGuideApp connects to a MS SQL Server 2008 database PassGuideDB.
PassGuideApp uses EDM to model entities. These entities includes Employees to
PassGuideDB.
You must add a new Employees entity, but you do not want to set all properties of the
entity.
What should you do? Select three.

PrepAway - Latest Free Exam Questions & Answers

A.
Use the data context object…

B.
Use the Employees context object…

C.
..and call…

D.
..and override…

E.
..and modify…

F.
..the Create method.

G.
..the Create Object method.

H.
.. the Save Changes method.

Explanation:

3 Comments on “What should you do?

  1. John Galt says:

    I’m pretty sure the specified answer is wrong. There is no method called ‘Create’ inside either DataContext, or ObjectContext classes. Source:
    http://msdn.microsoft.com/en-us/library/system.data.objects.objectcontext_methods%28v=vs.110%29.aspx

    The only method that makes sense is CreateObject method:
    http://msdn.microsoft.com/en-us/library/dd487204%28v=vs.110%29.aspx

    ObjectContext.CreateObject Method – Creates and returns an instance of the requested type.

    So the correct answer (IMO) is:
    User the Employees context object…
    …and call…
    …the Create method.




    0



    0

Leave a Reply