Ejemplo n.º 1
0
 internal RemoteQueryable(Type elemntType, IRemoteQueryProvider provider, Expression expression)
 {
     _elemntType = elemntType;
     _provider   = provider;
     _expression = expression ?? Expression.Constant(this);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RemoteQueryable{T}"/> class.
 /// </summary>
 public RemoteQueryable(IRemoteQueryProvider provider, Expression?expression = null)
     : base(typeof(T), provider, expression)
 {
 }
Ejemplo n.º 3
0
 internal RemoteQueryable(Type elemntType, IRemoteQueryProvider provider)
     : this(elemntType, provider, null)
 {
 }
Ejemplo n.º 4
0
 internal RemoteQueryable(IRemoteQueryProvider provider)
     : base(typeof(T), provider)
 {
 }
Ejemplo n.º 5
0
 internal RemoteQueryable(IRemoteQueryProvider provider, Expression expression)
     : base(typeof(T), provider, expression)
 {
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RemoteQueryable"/> class.
 /// </summary>
 public RemoteQueryable(Type elemntType, IRemoteQueryProvider provider, Expression?expression = null)
 {
     ElementType = elemntType.CheckNotNull(nameof(elemntType));
     Provider    = provider.CheckNotNull(nameof(provider));
     Expression  = expression ?? Expression.Constant(this);
 }
 public static TResult InvokeAndUnwrap <TResult>(this IRemoteQueryProvider queryProvider, MethodInfo method, Expression expression)
 => method
 .MakeGenericMethod(typeof(IQueryable).IsAssignableFrom(expression.Type) ? typeof(object) : expression.Type)
 .InvokeAndUnwrap <TResult>(queryProvider, expression);