Ejemplo n.º 1
0
		/// <summary>Create a new sequence query from a sequence expression</summary>
		public virtual IFdbAsyncSequenceQueryable<R> CreateSequenceQuery<R>([NotNull] FdbQuerySequenceExpression<R> expression)
		{
			if (expression == null) throw new ArgumentNullException("expression");

			if (this.Transaction != null)
				return new FdbAsyncSequenceQuery<R>(this.Transaction, expression);
			else
				return new FdbAsyncSequenceQuery<R>(this.Database, expression);
		}
        /// <summary>Create a new sequence query from a sequence expression</summary>
        public virtual IFdbAsyncSequenceQueryable <R> CreateSequenceQuery <R>(FdbQuerySequenceExpression <R> expression)
        {
            if (expression == null)
            {
                throw new ArgumentNullException(nameof(expression));
            }

            if (this.Transaction != null)
            {
                return(new FdbAsyncSequenceQuery <R>(this.Transaction, expression));
            }
            else
            {
                return(new FdbAsyncSequenceQuery <R>(this.Database !, expression));
            }
        }