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:
http://msdn.microsoft.com/en-us/library/bb896438%28v=vs.110%29.aspx
EntityCollection.CreateSourceQuery Method:
Returns an object query that, when it is executed, returns the same set of objects that exists in the current collection.