27 references to Count
System.Data.Entity (27)
System\Data\Common\EntitySql\AST\MethodExpr.cs (2)
45Debug.Assert(args == null || args.Count > 0, "args must be null or a non-empty list"); 73get { return null != _relationships && _relationships.Count > 0; }
System\Data\Common\EntitySql\CqlParser.cs (2)
2971System.Diagnostics.Debug.Assert(elist.Count==2); 2980System.Diagnostics.Debug.Assert(elist.Count==2);
System\Data\Common\EntitySql\SemanticAnalyzer.cs (23)
374Debug.Assert(functionDefList.Count == inlineFunctionInfos.Count); 1014relshipExprList = new List<DbRelatedEntityRef>(methodExpr.Relationships.Count); 1015for (int i = 0; i < methodExpr.Relationships.Count; i++) 1506for (int i = 0; i < astExprList.Count; i++) 2394Debug.Assert(typeSpecArgs != null && typeSpecArgs.Count > 0, "typeSpecArgs must be null or a non-empty list"); 2419if (typeSpecArgs.Count > 2) 2434if (typeSpecArgs.Count == 2) 2511Debug.Assert(rowTypeDefExpr.Properties != null && rowTypeDefExpr.Properties.Count > 0, "rowTypeDefExpr.Properties must be a non-empty collection"); 2535List<DbExpression> fieldExprs = new List<DbExpression>(rowExpr.AliasedExprList.Count); 2537for (int i = 0; i < rowExpr.AliasedExprList.Count; i++) 2627List<DbExpression> whenExprList = new List<DbExpression>(caseExpr.WhenThenExprList.Count); 2628List<DbExpression> thenExprList = new List<DbExpression>(caseExpr.WhenThenExprList.Count); 2633for (int i = 0; i < caseExpr.WhenThenExprList.Count; i++) 2861if (selectClause.Items.Count != 1) 2879List<KeyValuePair<string, DbExpression>> projectionItems = new List<KeyValuePair<string, DbExpression>>(selectClause.Items.Count); 2880for (int i = 0; i < selectClause.Items.Count; i++) 3013for (int i = 0; i < fromClause.FromClauseItems.Count; i++) 3379int groupKeysCount = groupByClause != null ? groupByClause.GroupItems.Count : 0; 3602projectionExpressions = new Dictionary<string, DbExpression>(queryExpr.SelectClause.Items.Count, sr.NameComparer); 3603for (int i = 0; i < queryExpr.SelectClause.Items.Count; i++) 3661for (int i = 0; i < queryExpr.OrderByClause.OrderByClauseItem.Count; i++) 4159List<DbSortClause> sortKeys = new List<DbSortClause>(orderByClause.OrderByClauseItem.Count); 4161for (int i = 0; i < orderByClause.OrderByClauseItem.Count; i++)