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