public override bool TryInvokeMember(InvokeMemberBinder binder, object[] args, out object result) { var adapterWithFunctions = _dataStrategy.GetAdapter() as IAdapterWithFunctions; if (adapterWithFunctions != null && adapterWithFunctions.IsValidFunction(binder.Name)) { var command = new ExecuteFunctionCommand(_dataStrategy.GetDatabase(), adapterWithFunctions, string.Format("{0}.{1}", _name, binder.Name), binder.ArgumentsToDictionary(args)); return command.Execute(out result); } return base.TryInvokeMember(binder, args, out result); }
public override bool TryInvokeMember(InvokeMemberBinder binder, object[] args, out object result) { var adapterWithFunctions = _dataStrategy.GetAdapter() as IAdapterWithFunctions; if (adapterWithFunctions != null && adapterWithFunctions.IsValidFunction(binder.Name)) { var command = new ExecuteFunctionCommand(_dataStrategy.GetDatabase(), adapterWithFunctions, string.Format("{0}.{1}", _name, binder.Name), binder.ArgumentsToDictionary(args)); return(command.Execute(out result)); } return(base.TryInvokeMember(binder, args, out result)); }
internal bool TryInvokeFunction(String functionName, Func <IDictionary <String, Object> > getFunctionArguments, out object result) { var adapterWithFunctions = GetAdapter() as IAdapterWithFunctions; if (adapterWithFunctions != null && adapterWithFunctions.IsValidFunction(functionName)) { var command = new ExecuteFunctionCommand(GetDatabase(), adapterWithFunctions, functionName, getFunctionArguments()); return(command.Execute(out result)); } result = null; return(false); }
public override bool TryInvokeMember(InvokeMemberBinder binder, object[] args, out object result) { var adapterWithFunctions = Adapter as IAdapterWithFunctions; if (adapterWithFunctions != null && adapterWithFunctions.IsValidFunction(binder.Name)) { var command = new ExecuteFunctionCommand(GetDatabase(), adapterWithFunctions, binder.Name, binder.ArgumentsToDictionary(args)); return(command.Execute(out result)); } return(base.TryInvokeMember(binder, args, out result)); }
protected internal override bool ExecuteFunction(out object result, ExecuteFunctionCommand command) { return(command.Execute(out result, _adapterTransaction)); }
protected internal override bool ExecuteFunction(out object result, ExecuteFunctionCommand command) { return command.Execute(out result, _adapterTransaction); }
protected internal override bool ExecuteFunction(out object result, ExecuteFunctionCommand command) { return(_wrappedStrategy.ExecuteFunction(out result, command)); }
protected internal abstract bool ExecuteFunction(out object result, ExecuteFunctionCommand command);