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