예제 #1
0
        public NemoQueryable(NemoQueryProvider provider, Expression expression)
        {
            provider.ThrowIfNull("provider");
            expression.ThrowIfNull("expression");

            _provider   = provider;
            _expression = expression;
        }
예제 #2
0
        public NemoQueryableAsync(NemoQueryProvider provider, Expression expression, CancellationToken cancellationToken)
        {
            provider.ThrowIfNull("provider");
            expression.ThrowIfNull("expression");

            _provider          = provider;
            _expression        = expression;
            _cancellationToken = cancellationToken == CancellationToken.None ? _tokenSource.Token : _cancellationToken;
        }
예제 #3
0
 public NemoQueryable(DbConnection connection = null)
 {
     _provider   = new NemoQueryProvider(connection);
     _expression = Expression.Constant(this);
 }
예제 #4
0
 public NemoQueryableAsync(NemoQueryProvider provider, Expression expression) : this(provider, expression, CancellationToken.None)
 {
 }
예제 #5
0
 public NemoQueryableAsync(DbConnection connection, IConfiguration config, CancellationToken cancellationToken)
 {
     _provider          = new NemoQueryProvider(connection, config);
     _expression        = Expression.Constant(this);
     _cancellationToken = cancellationToken == CancellationToken.None ? _tokenSource.Token : _cancellationToken;
 }