Ejemplo n.º 1
0
        /// <summary>
        /// Create a query to wrap the default l2o IQueryable
        /// </summary>
        /// <param name="underlyingQuery">The underlying l2o queryable</param>
        /// <returns>The wrapped queryable</returns>
        public static IQueryable CreateQuery(IQueryable underlyingQuery)
        {
            var provider = new L2OParameterizedQueryProvider();

            return(provider.CreateQuery(underlyingQuery.Expression));
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Override the GetQueryRootForResourceSet to fix the expression tree for Geo types and enum
 /// </summary>
 /// <param name="resourceSet"></param>
 /// <returns></returns>
 public override IQueryable GetQueryRootForResourceSet(ResourceSet resourceSet)
 {
     return(L2OParameterizedQueryProvider.CreateQuery(base.GetQueryRootForResourceSet(resourceSet)));
 }