|
6 | 6 |
|
7 | 7 | namespace Simple.Data |
8 | 8 | { |
9 | | - internal static class AdapterWithFunctionsExtensions |
10 | | - { |
11 | | - public static bool IsValidFunction(this Adapter adapter, string functionName) |
12 | | - { |
13 | | - var adapterWithFunctions = adapter as IAdapterWithFunctions; |
14 | | - if (adapterWithFunctions == null) return false; |
15 | | - return adapterWithFunctions.IsValidFunction(functionName); |
16 | | - } |
| 9 | + //internal static class AdapterWithFunctionsExtensions |
| 10 | + //{ |
| 11 | + // public static bool IsValidFunction(this Adapter adapter, string functionName) |
| 12 | + // { |
| 13 | + // var adapterWithFunctions = adapter as IAdapterWithFunctions; |
| 14 | + // if (adapterWithFunctions == null) return false; |
| 15 | + // return adapterWithFunctions.IsValidFunction(functionName); |
| 16 | + // } |
17 | 17 |
|
18 | | - public static bool Execute(this Adapter adapter, string functionName, IDictionary<string,object> parameters, out object result) |
19 | | - { |
20 | | - var adapterWithFunctions = adapter as IAdapterWithFunctions; |
21 | | - if (adapterWithFunctions == null) throw new NotSupportedException("Adapter does not support Function calls."); |
22 | | - var command = new ExecuteFunctionCommand(adapterWithFunctions, functionName, parameters); |
23 | | - return command.Execute(out result); |
24 | | - } |
25 | | - } |
| 18 | + // public static bool Execute(this Adapter adapter, string functionName, IDictionary<string,object> parameters, out object result) |
| 19 | + // { |
| 20 | + // var adapterWithFunctions = adapter as IAdapterWithFunctions; |
| 21 | + // if (adapterWithFunctions == null) throw new NotSupportedException("Adapter does not support Function calls."); |
| 22 | + // var command = new ExecuteFunctionCommand(adapterWithFunctions, functionName, parameters); |
| 23 | + // return command.Execute(out result); |
| 24 | + // } |
| 25 | + //} |
26 | 26 | } |
0 commit comments