public virtual ResultElement CreateNewResult(LambdaExpression selector) { ResultElement result = new ResultElement(this._resultElement.ScopeParameters, this._resultElement.ScopeTables); result.FromTable = this._resultElement.FromTable; ScopeParameterDictionary scopeParameters = this._resultElement.ScopeParameters.Clone(selector.Parameters[0], this._resultElement.MappingObjectExpression); IMappingObjectExpression r = SelectorExpressionVisitor.ResolveSelectorExpression(selector, scopeParameters, this._resultElement.ScopeTables); result.MappingObjectExpression = r; result.Orderings.AddRange(this._resultElement.Orderings); result.AppendCondition(this._resultElement.Condition); result.GroupSegments.AddRange(this._resultElement.GroupSegments); result.AppendHavingCondition(this._resultElement.HavingCondition); return result; }
public virtual ResultElement CreateNewResult(LambdaExpression selector) { ResultElement result = new ResultElement(); result.FromTable = this._resultElement.FromTable; IMappingObjectExpression r = SelectorExpressionVisitor.VisitSelectExpression(selector, this.MoeList); result.MappingObjectExpression = r; result.Orderings.AddRange(this._resultElement.Orderings); result.AppendCondition(this._resultElement.Condition); result.GroupSegments.AddRange(this._resultElement.GroupSegments); result.AppendHavingCondition(this._resultElement.HavingCondition); return(result); }
public virtual ResultElement CreateNewResult(LambdaExpression selector) { ResultElement result = new ResultElement(); result.FromTable = this._resultElement.FromTable; IMappingObjectExpression r = SelectorExpressionVisitor.VisitSelectExpression(selector, this.MoeList); result.MappingObjectExpression = r; result.OrderSegments.AddRange(this._resultElement.OrderSegments); result.AppendCondition(this._resultElement.Condition); result.GroupSegments.AddRange(this._resultElement.GroupSegments); result.AppendHavingCondition(this._resultElement.HavingCondition); return result; }