public virtual void InjectOptimization(IExpression expr) { _editor.AddInterface(TypeRef(typeof (IDb4oEnhancedFilter))); _builder = _editor.NewPublicMethod(PlatformName(OptimizeQueryMethodName), TypeRef (typeof (void)), new[] {TypeRef(typeof (IQuery))}); var predicateClass = _editor.Type; expr.Accept(new SODAExpressionBuilder(this, predicateClass)); _builder.Pop(); _builder.EndMethod(); }
public virtual void InjectOptimization(IExpression expr) { _editor.AddInterface(TypeRef(typeof(IDb4oEnhancedFilter))); _builder = _editor.NewPublicMethod(PlatformName(OptimizeQueryMethodName), TypeRef (typeof(void)), new ITypeRef[] { TypeRef(typeof(IQuery)) }); ITypeRef predicateClass = _editor.Type; expr.Accept(new SODAMethodBuilder.SODAExpressionBuilder(this, predicateClass)); _builder.Pop(); _builder.EndMethod(); }