src/Shared/EntityFramework/Internal/Linq/DbQueryProvider.cs
// <summary>
// Wraps the given <see cref="ObjectQuery" /> as a <see cref="InternalQuery{T}" /> where T is determined
// from the element type of the ObjectQuery.
// </summary>
Wraps the given  as a  where T is determined
from the element type of the ObjectQuery.
Wraps the given as a where T is determined from the element type of the ObjectQuery .
protected IInternalQuery CreateInternalQuery(ObjectQuery objectQuery)
        {
            DebugCheck.NotNull(objectQuery);
            var genericInternalQueryType = typeof(InternalQuery<>).MakeGenericType(
                ((IQueryable)objectQuery).ElementType);
            var constructor = genericInternalQueryType.GetDeclaredConstructor(typeof(InternalContext), typeof(ObjectQuery));
            return (IInternalQuery)constructor.Invoke(new object[] { _internalContext, objectQuery });
        }
protected IInternalQuery CreateInternalQuery ( ObjectQuery objectQuery ) { DebugCheck . NotNull ( objectQuery ) ; var genericInternalQueryType = typeof ( InternalQuery < > ) . MakeGenericType ( ( ( IQueryable ) objectQuery ) . ElementType ) ; var constructor = genericInternalQueryType . GetDeclaredConstructor ( typeof ( InternalContext ) , typeof ( ObjectQuery ) ) ; return ( IInternalQuery ) constructor . Invoke ( new object [ ] { _internalContext , objectQuery } ) ; }
Wraps the given  as a  where T is determined
from the element type of the ObjectQuery.
Wraps the given as a where T is determined from the element type of the ObjectQuery .
objectQuery
ObjectQuery