Here are the examples of the csharp api class System.Data.Common.CommandTrees.ExpressionBuilder.Internal.ArgumentValidation.RequireCollectionArguments(System.Data.Common.CommandTrees.DbExpression, System.Data.Common.CommandTrees.DbExpression) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
0
1. Example
View licenseprivate static TypeUsage RequireComparableCollectionArguments<TExpressionType>(DbExpression left, DbExpression right) { TypeUsage resultType = RequireCollectionArguments<TExpressionType>(left, right); if (!TypeHelpers.IsSetComparableOpType(TypeHelpers.GetElementTypeUsage(left.ResultType))) { throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_InvalidTypeForSetOperation(TypeHelpers.GetElementTypeUsage(left.ResultType).Identity, typeof(TExpressionType).Name), "left"); } if (!TypeHelpers.IsSetComparableOpType(TypeHelpers.GetElementTypeUsage(right.ResultType))) { throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_InvalidTypeForSetOperation(TypeHelpers.GetElementTypeUsage(right.ResultType).Identity, typeof(TExpressionType).Name), "right"); } return resultType; }
0
2. Example
View licenseinternal static TypeUsage ValidateUnionAll(DbExpression left, DbExpression right) { ValidateBinary(left, right); // // Ensure that the left and right operands are each of a collection type and that a common type exists for those types. // return RequireCollectionArguments<DbUnionAllExpression>(left, right); }