Here are the examples of the csharp api class System.Data.Common.CommandTrees.ExpressionBuilder.Internal.ArgumentValidation.GetExpectedParameters(System.Data.Metadata.Edm.EdmFunction) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
0
1. Example
View licenseinternal static DbExpressionList ValidateFunctionAggregate(EdmFunction function, IEnumerable<DbExpression> args) { // // Verify that the aggregate function is from the metadata collection and data space of the command tree. // ArgumentValidation.CheckFunction(function); // Verify that the function is actually a valid aggregate function. // For now, only a single argument is allowed. if (!TypeSemantics.IsAggregateFunction(function) || null == function.ReturnParameter) { throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Aggregate_InvalidFunction, "function"); } FunctionParameter[] expectedParams = GetExpectedParameters(function); DbExpressionList funcArgs = CreateExpressionList(args, "argument", expectedParams.Length, (exp, idx) => { TypeUsage paramType = expectedParams[idx].TypeUsage; TypeUsage elementType = null; if (TypeHelpers.TryGetCollectionElementType(paramType, out elementType)) { paramType = elementType; } ArgumentValidation.RequireCompatibleType(exp, paramType, "argument"); } ); return funcArgs; }
0
2. Example
View licenseinternal static TypeUsage ValidateFunction(EdmFunction function, IEnumerable<DbExpression> arg/n ..... /n //View Source file for more details /n }