src/Shared/EntityFramework/Core/Objects/DataClasses/EntityCollection.cs
// Identical code is in EntityReference, but this can't be moved to the base class because it relies on the
// knowledge of the generic type, and the base class isn't generic
/// <summary>Returns an object query that, when it is executed, returns the same set of objects that exists in the current collection. </summary>
/// <returns>
/// An <see cref="T:System.Data.Entity.Core.Objects.ObjectQuery`1" /> that represents the entity collection.
/// </returns>
/// <exception cref="T:System.InvalidOperationException">
/// When the object is in an <see cref="F:System.Data.Entity.EntityState.Added" /> state 
/// or when the object is in a
/// <see cref="F:System.Data.Entity.EntityState.Detached" /> state with a
/// <see cref="T:System.Data.Entity.Core.Objects.MergeOption" /> other than
/// <see cref="F:System.Data.Entity.Core.Objects.MergeOption.NoTracking" />.
/// </exception>
Returns an object query that, when it is executed, returns the same set of objects that exists in the current collection.
Returns an object query that when it is executed returns the same set of objects that exists in the current collection .
public ObjectQuery<TEntity> CreateSourceQuery()
        {
            CheckOwnerNull();
            bool hasResults;
            return CreateSourceQuery<TEntity>(DefaultMergeOption, out hasResults);
        }
public ObjectQuery < TEntity > CreateSourceQuery ( ) { CheckOwnerNull ( ) ; bool hasResults ; return CreateSourceQuery < TEntity > ( DefaultMergeOption , out hasResults ) ; }
Returns an object query that, when it is executed, returns the same set of objects that exists in the current collection.
Returns an object query that when it is executed returns the same set of objects that exists in the current collection .
An  that represents the entity collection.
An that represents the entity collection .
When the object is in an  state
or when the object is in a
state with a
other than
.
When the object is in an state or when the object is in a state with a other than .