88 references to CollectionKind
System.Data.Entity (53)
System\Data\EntityModel\SchemaObjectModel\EntityKeyElement.cs (1)
122if (!(property.Type is ScalarType || property.Type is SchemaEnumType) || (property.CollectionKind != CollectionKind.None))
System\Data\EntityModel\SchemaObjectModel\Function.cs (9)
39private CollectionKind _returnTypeCollectionKind = CollectionKind.None; 80internal static string GetTypeNameForErrorMessage(SchemaType type, CollectionKind colKind, bool isRef) 89case CollectionKind.Bag: 93Debug.Assert(colKind == CollectionKind.None, "Unexpected CollectionKind"); 233public CollectionKind CollectionKind 464else if (Parameters.GetElementAt(0).CollectionKind == CollectionKind.None) 512if (_type != null && (_type is ScalarType == false || _returnTypeCollectionKind != Metadata.Edm.CollectionKind.None)) 701CollectionKind = CollectionKind.Bag;
System\Data\EntityModel\SchemaObjectModel\FunctionImportElement.cs (11)
159if (p.IsRefType || p.CollectionKind != Metadata.Edm.CollectionKind.None) 176private void ValidateFunctionImportReturnType(SchemaElement owner, SchemaType returnType, CollectionKind returnTypeCollectionKind, EntityContainerEntitySet entitySet, bool entitySetPathDefined) 189private bool ReturnTypeMeetsFunctionImportBasicRequirements(SchemaType type, CollectionKind returnTypeCollectionKind) 191if (type is ScalarType && returnTypeCollectionKind == CollectionKind.Bag) 193if (type is SchemaEntityType && returnTypeCollectionKind == CollectionKind.Bag) return true; 197if (type is ScalarType && returnTypeCollectionKind == CollectionKind.None) return true; 198if (type is SchemaEntityType && returnTypeCollectionKind == CollectionKind.None) return true; 199if (type is SchemaComplexType && returnTypeCollectionKind == CollectionKind.None) return true; 200if (type is SchemaComplexType && returnTypeCollectionKind == CollectionKind.Bag) return true; 204if (type is SchemaComplexType && returnTypeCollectionKind == CollectionKind.Bag) return true; 208if (type is SchemaEnumType && returnTypeCollectionKind == CollectionKind.Bag) return true;
System\Data\EntityModel\SchemaObjectModel\ModelFunction.cs (1)
54else if (CollectionKind != CollectionKind.None)
System\Data\EntityModel\SchemaObjectModel\Parameter.cs (7)
30private CollectionKind _collectionKind = CollectionKind.None; 58internal CollectionKind CollectionKind 87else if (CollectionKind != CollectionKind.None) 114if (_collectionKind != CollectionKind.None) 197CollectionKind = CollectionKind.Bag; 380if (_type != null && (_type is ScalarType == false || (!collectionAllowed && _collectionKind != CollectionKind.None)))
System\Data\EntityModel\SchemaObjectModel\ReturnType.cs (7)
24private CollectionKind _collectionKind = CollectionKind.None; 50internal CollectionKind CollectionKind 86else if (_collectionKind != CollectionKind.None) 168_collectionKind = CollectionKind.Bag; 310if (_type != null && (_type is ScalarType == false || _collectionKind != CollectionKind.None) || 336if (_type is ScalarType == false || _collectionKind != CollectionKind.None)
System\Data\EntityModel\SchemaObjectModel\RowTypePropertyElement.cs (6)
26private CollectionKind _collectionKind = CollectionKind.None; 76_collectionKind = CollectionKind.Bag; 157if (_collectionKind != CollectionKind.None) 226if (_collectionKind != CollectionKind.None) 245if (_type is ScalarType == false || _isRefType || _collectionKind != CollectionKind.None)
System\Data\EntityModel\SchemaObjectModel\StructuredProperty.cs (8)
31private CollectionKind _collectionKind = CollectionKind.None; 114public CollectionKind CollectionKind 209if ((_collectionKind == CollectionKind.Bag) || 210(_collectionKind == CollectionKind.List)) 285_collectionKind = CollectionKind.None; 291_collectionKind = CollectionKind.List; 295_collectionKind = CollectionKind.Bag;
System\Data\Metadata\Converter.cs (3)
740if (somProperty.CollectionKind != CollectionKind.None) 1104CollectionKind collectionKind, 1212if (collectionKind != CollectionKind.None)
System.Data.Entity.Design (20)
System\Data\EntityModel\Emitters\PropertyEmitter.cs (20)
237if (GetCollectionKind(Item.TypeUsage) == CollectionKind.None) 336EmitScalarTypePropertySetStatements(statements, CollectionKind.None); 341EmitComplexTypePropertySetStatements(statements, CollectionKind.None); 451CollectionKind collectionKind) 461if (collectionKind == CollectionKind.None) 513private void EmitComplexTypePropertySetStatements(CodeStatementCollection statements, CollectionKind collectionKind) 519if (collectionKind == CollectionKind.None) 617private static CollectionKind GetCollectionKind(TypeUsage usage) 622return (CollectionKind)collectionFacet.Value; 625return CollectionKind.None; 801: this(typeReference, primitiveType, CollectionKind.None) 805public PropertyTypeReferences(TypeReference typeReference, PrimitiveType primitiveType, CollectionKind collectionKind) 808if (collectionKind == CollectionKind.None) 829public PropertyTypeReferences(TypeReference typeReference, ComplexType complexType, CollectionKind collectionKind, ClientApiGenerator generator) 837private static CodeTypeReference GetCollectionTypeReference(TypeReference typeReference, CodeTypeReference baseType, CollectionKind collectionKind) 839if (collectionKind == CollectionKind.Bag) 843else if (collectionKind == CollectionKind.List) 849Debug.Assert(collectionKind == CollectionKind.None, "Was another CollectionKind value added"); 856: this(typeReference, complexType, CollectionKind.None, generator) 937if (Helper.IsCollectionType(Item.TypeUsage.EdmType) && GetCollectionKind(Item.TypeUsage) != CollectionKind.None)
System.Data.Services.Design (15)
System\Data\EntityModel\Emitters\PropertyEmitter.cs (15)
237if (GetCollectionKind(Item.TypeUsage) == CollectionKind.None) 366if (GetCollectionKind(Item.TypeUsage) == CollectionKind.None) 542private static CollectionKind GetCollectionKind(TypeUsage usage) 547return (CollectionKind)collectionFacet.Value; 550return CollectionKind.None; 724: this(typeReference, primitiveType, CollectionKind.None) 728public PropertyTypeReferences(TypeReference typeReference, PrimitiveType primitiveType, CollectionKind collectionKind) 731if (collectionKind == CollectionKind.None) 752public PropertyTypeReferences(TypeReference typeReference, ComplexType complexType, CollectionKind collectionKind, ClientApiGenerator generator) 760private static CodeTypeReference GetCollectionTypeReference(TypeReference typeReference, CodeTypeReference baseType, CollectionKind collectionKind) 762if (collectionKind == CollectionKind.Bag) 766else if (collectionKind == CollectionKind.List) 772Debug.Assert(collectionKind == CollectionKind.None, "Was another CollectionKind value added"); 779: this(typeReference, complexType, CollectionKind.None, generator) 862if (Helper.IsCollectionType(Item.TypeUsage.EdmType) && GetCollectionKind(Item.TypeUsage) != CollectionKind.None)