private Expression Source(Expression node) { node = sourcer.ReplaceQueryableSource(context, BaseQuery != null); if (node == null) { // Missing source expression throw new NotSupportedException(Resources.SourceExpressionMissing); } return(node); }
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); }