예제 #1
0
 public MethodNode(MethodCallExpression expression, SqlNode parent, IMethodTranslator translator) : base(parent)
 {
     MethodName  = expression.Method.Name;
     Object      = For(expression.Object);
     Arguments   = expression.Arguments.Select(For).ToList();
     _translator = translator;
 }
        public void Map <T>(Expression <Action <T> > expression, IMethodTranslator translator)
        {
            var method = GetMethod(expression);

            _translators[method] = translator;
        }