PrepAway - Latest Free Exam Questions & Answers

How can you ensure that the orders are stored on the locate data store?

There is MS Visual Studio 2010 and MS .NET Framework 4 application PassGuideApp.
PassGuideApp connects to a MS SQL Server 2008 database PassGuideDB on server
PassGuideSrv.
PassGuideApp uses a Microsoft ADO.NET Entity Framework.
PassGuideApp manages an order database.
PassGuideApp obtains order data through a web service call from an order-tracking
system on PassGuideDB.
How can you ensure that the orders are stored on the locate data store? Select two.

PrepAway - Latest Free Exam Questions & Answers

A.
Use class DataContext

B.
Use class ObjectContext

C.
Use class ApplicationContext

D.
Use method Attach on this class.

E.
Use method StoreObject on this class.

F.
Use method AddObject on this class.

G.
Use method ApplyCurrentValues on this class.

H.
Use method ApplyValues on this class.

I.
Use method AttachTo on this class.

Explanation:

One Comment on “How can you ensure that the orders are stored on the locate data store?

  1. John Galt says:

    http://msdn.microsoft.com/en-us/library/bb896271%28v=vs.110%29.aspx

    Call AddObject on the ObjectContext to add the object to the object context. Do this when the object is a new object that does not yet exist in the data source.

    If the attached object does not exist in the data source, it is not added during SaveChanges. In this case, when changes are made to properties, an exception occurs at the server during SaveChanges. To add an object, use ObjectContext.AddObject.




    0



    0

Leave a Reply