What could be the reason of the InvalidOperationException exception?

You work as a Web Developer in PassGuide.com. The company uses Microsoft .NET Framework
4 as its application development platform. You are using the CreateSourceQuery method in your
query. However, this method throws an InvalidOperationException. What could be the reason of
the InvalidOperationException exception?
Each correct answer represents a complete solution. Choose two.

You work as a Web Developer in PassGuide.com. The company uses Microsoft .NET Framework
4 as its application development platform. You are using the CreateSourceQuery method in your
query. However, this method throws an InvalidOperationException. What could be the reason of
the InvalidOperationException exception?
Each correct answer represents a complete solution. Choose two.

A.
The object is not in Unchanged state.

B.
The object is null.

C.
The object is in Detached state with a MergeOption other than NoTracking.

D.
The object is in Added state.

Explanation:



Leave a Reply 2

Your email address will not be published. Required fields are marked *


Jim BBQ

Jim BBQ

EntityCollection.CreateSourceQuery Method:

Returns an object query that, when it is executed, returns the same set of objects that exists in the current collection.