static private Execute ( |
||
expression | ||
isEnumerable | bool | |
inputs | Elastacloud.AzureManagement.Fluent.Linq.LinqToAzureInputs | |
리턴 | object |
/// <summary> /// Executes the strongly-typed query represented by a specified expression tree. /// </summary> /// <returns> /// The value that results from executing the specified query. /// </returns> /// <param name="expression">An expression tree that represents a LINQ query.</param><typeparam name="TResult">The type of the value that results from executing the query.</typeparam> public TResult Execute <TResult>(Expression expression) { bool isEnumerable = (typeof(TResult).Name == "IEnumerable`1"); Debug.WriteLine(typeof(TResult).Name); return((TResult)LinqToAzureQueryContext.Execute(expression, isEnumerable, SubscriptionInformation)); }
/// <summary> /// Executes the query represented by a specified expression tree. /// </summary> /// <returns> /// The value that results from executing the specified query. /// </returns> /// <param name="expression">An expression tree that represents a LINQ query.</param> public object Execute(Expression expression) { return(LinqToAzureQueryContext.Execute(expression, false, SubscriptionInformation)); }