示例#1
0
            private Expression Source(Expression node)
            {
                node = sourcer.ReplaceQueryableSource(context, BaseQuery != null);
                if (node == null)
                {
                    // Missing source expression
                    throw new NotSupportedException(Resources.SourceExpressionMissing);
                }

                return(node);
            }
示例#2
0
            private Expression Source(Expression node)
            {
                if (sourcer == null)
                {
                    sourcer = context.QueryContext
                              .GetApiService <IQueryExpressionSourcer>();
                }

                if (sourcer == null)
                {
                    // Missing sourcer
                    throw new NotSupportedException(Resources.QuerySourcerMissing);
                }

                node = sourcer.ReplaceQueryableSource(context, BaseQuery != null);
                if (node == null)
                {
                    // Missing source expression
                    throw new NotSupportedException(Resources.SourceExpressionMissing);
                }

                return(node);
            }