Here are the examples of the csharp api class System.Data.Common.CommandTrees.ExpressionBuilder.Internal.ArgumentValidation.ValidateSortClause(System.Data.Common.CommandTrees.DbExpression) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Example
0
1. Example
View licenseinternal static void ValidateSortClause(DbExpression key, string collation) { ValidateSortClause(key); EntityUtil.CheckArgumentNull(collation, "collation"); if (StringUtil.IsNullOrEmptyOrWhiteSpace(collation)) { throw EntityUtil.ArgumentOutOfRange(System.Data.Entity.Strings.Cqt_Sort_EmptyCollationInvalid, "collation"); } if (!TypeSemantics.IsPrimitiveType(key.ResultType, PrimitiveTypeKind.String)) { throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Sort_NonStringCollationInvalid, "collation"); } }