24 overrides of BuiltInTypeKind
System.Data.Entity (24)
System\Data\Mapping\ObjectTypeMapping.cs (1)
60public override BuiltInTypeKind BuiltInTypeKind {
System\Data\Mapping\StorageEntityContainerMapping.cs (1)
95public override BuiltInTypeKind BuiltInTypeKind {
System\Data\Metadata\Edm\AssociationEndMember.cs (1)
41public override BuiltInTypeKind BuiltInTypeKind { get { return BuiltInTypeKind.AssociationEndMember; } }
System\Data\Metadata\Edm\AssociationSetEnd.cs (1)
48public override BuiltInTypeKind BuiltInTypeKind { get { return BuiltInTypeKind.AssociationSetEnd; } }
System\Data\Metadata\Edm\AssociationType.cs (1)
53public override BuiltInTypeKind BuiltInTypeKind { get { return BuiltInTypeKind.AssociationType; } }
System\Data\Metadata\Edm\CollectionType.cs (1)
55public override BuiltInTypeKind BuiltInTypeKind { get { return BuiltInTypeKind.CollectionType; } }
System\Data\Metadata\Edm\ComplexType.cs (1)
54public override BuiltInTypeKind BuiltInTypeKind { get { return BuiltInTypeKind.ComplexType; } }
System\Data\Metadata\Edm\Documentation.cs (1)
44public override BuiltInTypeKind BuiltInTypeKind { get { return BuiltInTypeKind.Documentation; } }
System\Data\Metadata\Edm\EdmFunction.cs (1)
120public override BuiltInTypeKind BuiltInTypeKind { get { return BuiltInTypeKind.EdmFunction; } }
System\Data\Metadata\Edm\EdmProperty.cs (1)
82public override BuiltInTypeKind BuiltInTypeKind { get { return BuiltInTypeKind.EdmProperty; } }
System\Data\Metadata\Edm\EntityContainer.cs (1)
52public override BuiltInTypeKind BuiltInTypeKind { get { return BuiltInTypeKind.EntityContainer; } }
System\Data\Metadata\Edm\EntitySetBase.cs (1)
85public override BuiltInTypeKind BuiltInTypeKind { get { return BuiltInTypeKind.EntitySetBase; } }
System\Data\Metadata\Edm\EntityType.cs (1)
83public override BuiltInTypeKind BuiltInTypeKind { get { return BuiltInTypeKind.EntityType; } }
System\Data\Metadata\Edm\EnumMember.cs (1)
64public override BuiltInTypeKind BuiltInTypeKind
System\Data\Metadata\Edm\EnumType.cs (1)
116public override BuiltInTypeKind BuiltInTypeKind { get { return BuiltInTypeKind.EnumType; } }
System\Data\Metadata\Edm\Facet.cs (1)
120public override BuiltInTypeKind BuiltInTypeKind { get { return BuiltInTypeKind.Facet; } }
System\Data\Metadata\Edm\FunctionParameter.cs (1)
53public override BuiltInTypeKind BuiltInTypeKind { get { return BuiltInTypeKind.FunctionParameter; } }
System\Data\Metadata\Edm\MetadataProperty.cs (1)
77public override BuiltInTypeKind BuiltInTypeKind { get { return BuiltInTypeKind.MetadataProperty; } }
System\Data\Metadata\Edm\NavigationProperty.cs (1)
61public override BuiltInTypeKind BuiltInTypeKind { get { return BuiltInTypeKind.NavigationProperty; } }
System\Data\Metadata\Edm\PrimitiveType.cs (1)
86public override BuiltInTypeKind BuiltInTypeKind { get { return BuiltInTypeKind.PrimitiveType; } }
System\Data\Metadata\Edm\ReferentialConstraint.cs (1)
55public override BuiltInTypeKind BuiltInTypeKind { get { return BuiltInTypeKind.ReferentialConstraint; } }
System\Data\Metadata\Edm\RefType.cs (1)
45public override BuiltInTypeKind BuiltInTypeKind { get { return BuiltInTypeKind.RefType; } }
System\Data\Metadata\Edm\RowType.cs (1)
77public override BuiltInTypeKind BuiltInTypeKind { get { return BuiltInTypeKind.RowType; } }
System\Data\Metadata\Edm\TypeUsage.cs (1)
358public override BuiltInTypeKind BuiltInTypeKind { get { return BuiltInTypeKind.TypeUsage; } }
300 references to BuiltInTypeKind
System.Data.Entity (213)
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (2)
1951if (BuiltInTypeKind.PrimitiveType == item.BuiltInTypeKind || 1952(BuiltInTypeKind.EdmFunction == item.BuiltInTypeKind && DataSpace.CSpace == item.DataSpace))
System\Data\Common\CommandTrees\Internal\ExpressionCopier.cs (3)
114if (BuiltInTypeKind.RefType == type.BuiltInTypeKind) 123else if (BuiltInTypeKind.CollectionType == type.BuiltInTypeKind) 132else if (BuiltInTypeKind.RowType == type.BuiltInTypeKind)
System\Data\Common\CommandTrees\Internal\ExpressionDumper.cs (1)
212"BuiltInTypeKind", Enum.GetName(typeof(BuiltInTypeKind), type.BuiltInTypeKind),
System\Data\Common\CommandTrees\Internal\ExpressionPrinter.cs (4)
360if (BuiltInTypeKind.RowType != type.BuiltInTypeKind) 756if (BuiltInTypeKind.CollectionType == e.ResultType.EdmType.BuiltInTypeKind) 765string description = (BuiltInTypeKind.RowType == e.ResultType.EdmType.BuiltInTypeKind) ? "Column" : "Property"; 772if (BuiltInTypeKind.EntityType == e.ResultType.EdmType.BuiltInTypeKind &&
System\Data\Common\CommandTrees\Internal\ViewSimplifier.cs (1)
828expression.ResultType.EdmType.BuiltInTypeKind == BuiltInTypeKind.PrimitiveType)
System\Data\Common\DataRecord.cs (1)
497if (member.BuiltInTypeKind == BuiltInTypeKind.EdmProperty)
System\Data\Common\DataRecordInfo.cs (4)
44((BuiltInTypeKind.EdmProperty == member.BuiltInTypeKind) || // for ComplexType, EntityType; BuiltTypeKind.NaviationProperty not allowed 45(BuiltInTypeKind.AssociationEndMember == member.BuiltInTypeKind))) // for AssociationType 87Debug.Assert((BuiltInTypeKind.EdmProperty == member.BuiltInTypeKind) || 88(BuiltInTypeKind.AssociationEndMember == member.BuiltInTypeKind),
System\Data\Common\EntitySql\CqlErrorHelper.cs (8)
103if (leftType.EdmType.BuiltInTypeKind != rightType.EdmType.BuiltInTypeKind) 113switch( leftType.EdmType.BuiltInTypeKind ) 242if (type.BuiltInTypeKind == BuiltInTypeKind.RowType || 243type.BuiltInTypeKind == BuiltInTypeKind.CollectionType || 244type.BuiltInTypeKind == BuiltInTypeKind.RefType) 259switch( type.BuiltInTypeKind) 280typeKindName = type.BuiltInTypeKind.ToString();
System\Data\Common\EntitySql\SemanticAnalyzer.cs (14)
1910targetTypeUsage.EdmType.BuiltInTypeKind.ToString())); 2504targetTypeUsage.EdmType.BuiltInTypeKind.ToString())); 4897exprToFilter.ResultType.EdmType.BuiltInTypeKind.ToString(), 4904exprToFilter.ResultType.EdmType.BuiltInTypeKind.ToString(), 4911typeToFilterTo.EdmType.BuiltInTypeKind.ToString(), 4917typeToFilterTo.EdmType.BuiltInTypeKind.ToString(), 4973typeToTreatTo.EdmType.BuiltInTypeKind.ToString(), 4980typeToTreatTo.EdmType.BuiltInTypeKind.ToString(), 4992exprToTreat.ResultType.EdmType.BuiltInTypeKind.ToString(), 4999exprToTreat.ResultType.EdmType.BuiltInTypeKind.ToString(), 5084Strings.OfTypeExpressionElementTypeMustBeEntityType(elementType.EdmType.BuiltInTypeKind.ToString(), elementType)); 5089Strings.OfTypeExpressionElementTypeMustBeNominalType(elementType.EdmType.BuiltInTypeKind.ToString(), elementType)); 5095Strings.TypeMustBeEntityType(Strings.CtxOfType, typeToFilterTo.EdmType.BuiltInTypeKind.ToString(), typeToFilterTo.EdmType.FullName)); 5100Strings.TypeMustBeNominalType(Strings.CtxOfType, typeToFilterTo.EdmType.BuiltInTypeKind.ToString(), typeToFilterTo.EdmType.FullName));
System\Data\Common\Internal\Materialization\ColumnMapKeyBuilder.cs (1)
96if (type.BuiltInTypeKind == BuiltInTypeKind.RowType)
System\Data\Common\Internal\Materialization\RecordStateFactory.cs (1)
115switch (typeUsages[ordinal].EdmType.BuiltInTypeKind)
System\Data\Common\Internal\Materialization\Translator.cs (3)
341switch (edmType.BuiltInTypeKind) 485switch (result.BuiltInTypeKind) 1546Debug.Assert(columnMap.Type.EdmType.BuiltInTypeKind == BuiltInTypeKind.RowType, "RecordColumnMap without RowType?"); // we kind of depend upon this
System\Data\Common\Utils\MetadataHelper.cs (7)
66&& returnParameter.TypeUsage.EdmType.BuiltInTypeKind == BuiltInTypeKind.CollectionType) 204return member.TypeUsage.EdmType.BuiltInTypeKind == BuiltInTypeKind.PrimitiveType || 205member.TypeUsage.EdmType.BuiltInTypeKind == BuiltInTypeKind.EnumType; 222Debug.Assert(end.TypeUsage.EdmType.BuiltInTypeKind == BuiltInTypeKind.RefType, 226Debug.Assert(endType.BuiltInTypeKind == BuiltInTypeKind.EntityType, 688Debug.Assert(null != typeUsage && null != typeUsage.EdmType && typeUsage.EdmType.BuiltInTypeKind == BuiltInTypeKind.PrimitiveType); 710if (BuiltInTypeKind.CollectionType == typeUsage.EdmType.BuiltInTypeKind)
System\Data\EntityClient\EntityCommandDefinition.cs (2)
192Debug.Assert(storeResultType.EdmType.BuiltInTypeKind == BuiltInTypeKind.CollectionType, "FunctionImport currently supports only collection result type"); 230if (property.TypeUsage.EdmType.BuiltInTypeKind == BuiltInTypeKind.ComplexType)
System\Data\Mapping\BaseMetadataMappingVisitor.cs (6)
200switch (relationshipType.BuiltInTypeKind) 206Debug.Fail(String.Format(CultureInfo.InvariantCulture, "Found type '{0}', did we add a new type?", relationshipType.BuiltInTypeKind)); 220switch (edmType.BuiltInTypeKind) 247Debug.Fail(String.Format(CultureInfo.InvariantCulture, "Found type '{0}', did we add a new type?", edmType.BuiltInTypeKind)); 317switch (entityTypeBase.BuiltInTypeKind) 326Debug.Fail(String.Format(CultureInfo.InvariantCulture, "Found type '{0}', did we add a new type?", entityTypeBase.BuiltInTypeKind));
System\Data\Mapping\DefaultObjectMappingItemCollection.cs (32)
272if (BuiltInTypeKind.RowType == edmType.BuiltInTypeKind) 392if (BuiltInTypeKind.PrimitiveType != objectMap.ClrType.BuiltInTypeKind && 393BuiltInTypeKind.RowType != objectMap.ClrType.BuiltInTypeKind && 394BuiltInTypeKind.CollectionType != objectMap.ClrType.BuiltInTypeKind) 405if (BuiltInTypeKind.PrimitiveType != objectMap.EdmType.BuiltInTypeKind && 406BuiltInTypeKind.RowType != objectMap.EdmType.BuiltInTypeKind && 407BuiltInTypeKind.CollectionType != objectMap.EdmType.BuiltInTypeKind) 450Debug.Assert((edmType.BuiltInTypeKind == objectType.BuiltInTypeKind), "The BuiltInTypeKind must be same in LoadObjectMapping"); 509if (edmMember.BuiltInTypeKind != objectMember.BuiltInTypeKind) 512edmMember.Name, edmMember.DeclaringType.FullName, edmMember.BuiltInTypeKind, 513objectMember.Name, objectMember.DeclaringType.FullName, objectMember.BuiltInTypeKind)); 517if (edmMember.TypeUsage.EdmType.BuiltInTypeKind != objectMember.TypeUsage.EdmType.BuiltInTypeKind) 522edmMember.TypeUsage.EdmType.Name, edmMember.TypeUsage.EdmType.BuiltInTypeKind, edmMember.Name, edmMember.DeclaringType.FullName, 523objectMember.TypeUsage.EdmType.Name, objectMember.TypeUsage.EdmType.BuiltInTypeKind, objectMember.Name, objectMember.DeclaringType.FullName)); 552if (BuiltInTypeKind.AssociationEndMember == edmMember.BuiltInTypeKind) 557else if (BuiltInTypeKind.NavigationProperty == edmMember.BuiltInTypeKind && 609Debug.Assert(edmType.BuiltInTypeKind == BuiltInTypeKind.EntityType || 610edmType.BuiltInTypeKind == BuiltInTypeKind.ComplexType, 612Debug.Assert((edmType.BuiltInTypeKind == objectType.BuiltInTypeKind), "The BuiltInTypeKind must be same in LoadEntityTypeOrComplexTypeMapping"); 648Debug.Assert(edmMember.BuiltInTypeKind == BuiltInTypeKind.NavigationProperty, "Unexpected Property type encountered"); 663Debug.Assert(cdmStructuralType.BuiltInTypeKind == objectStructuralType.BuiltInTypeKind, "the types must be the same"); 751Debug.Assert(edmType.BuiltInTypeKind == BuiltInTypeKind.AssociationType, "Expected Type Encountered in LoadAssociationTypeMapping"); 752Debug.Assert((edmType.BuiltInTypeKind == objectType.BuiltInTypeKind), "The BuiltInTypeKind must be same in LoadAssociationTypeMapping"); 769Debug.Assert(edmEnd.TypeUsage.EdmType.BuiltInTypeKind == BuiltInTypeKind.RefType, "Ends must be of Ref type"); 793Debug.Assert(containingEdmMember.TypeUsage.EdmType.BuiltInTypeKind == BuiltInTypeKind.ComplexType, "edm member declaringType must be of complexType"); 794Debug.Assert(containingClrMember.TypeUsage.EdmType.BuiltInTypeKind == BuiltInTypeKind.ComplexType, "clr member declaringType must be of complexType");
System\Data\Mapping\FunctionImportMappingComposable.cs (1)
426Debug.Assert(row.ResultType.EdmType.BuiltInTypeKind == BuiltInTypeKind.RowType, "Input type is expected to be a row type.");
System\Data\Mapping\ObjectMemberMapping.cs (2)
30System.Diagnostics.Debug.Assert(edmMember.BuiltInTypeKind == clrMember.BuiltInTypeKind, "BuiltInTypeKind must be the same");
System\Data\Mapping\ObjectTypeMapping.cs (2)
28Debug.Assert(clrType.BuiltInTypeKind == cdmType.BuiltInTypeKind, "BuiltInTypeKind must be the same for both types");
System\Data\Mapping\StorageMappingItemLoader.cs (3)
2103if (resultType.BuiltInTypeKind == BuiltInTypeKind.EntityType) 2114Debug.Assert(resultType.BuiltInTypeKind == BuiltInTypeKind.ComplexType, "resultType.BuiltInTypeKind == BuiltInTypeKind.ComplexType"); 4307if (m_members.Last().BuiltInTypeKind == BuiltInTypeKind.AssociationEndMember)
System\Data\Mapping\Update\Internal\ExtractorMetadata.cs (3)
53switch (type.BuiltInTypeKind) 375(member.DeclaringType.BuiltInTypeKind == BuiltInTypeKind.EntityType && (flags & PropagatorFlags.Key) == PropagatorFlags.Key), 388(isNullConditionMember || member.TypeUsage.EdmType.BuiltInTypeKind == BuiltInTypeKind.ComplexType);
System\Data\Mapping\Update\Internal\Propagator.Evaluator.cs (1)
502if (!childResult.IsSimple || BuiltInTypeKind.PrimitiveType != nodeType.EdmType.BuiltInTypeKind)
System\Data\Mapping\Update\Internal\RelationshipConstraintValidator.cs (1)
125Debug.Assert(BuiltInTypeKind.EntityType == extendedRecord.DataRecordInfo.RecordType.EdmType.BuiltInTypeKind);
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (4)
347Debug.Assert(BuiltInTypeKind.RefType == role.TypeUsage.EdmType.BuiltInTypeKind, 350Debug.Assert(BuiltInTypeKind.EntityType == endType.ElementType.BuiltInTypeKind, 531if (BuiltInTypeKind.EdmProperty == member.BuiltInTypeKind && 553Debug.Assert(BuiltInTypeKind.PrimitiveType == member.TypeUsage.EdmType.BuiltInTypeKind,
System\Data\Mapping\ViewGeneration\DiscriminatorMap.cs (1)
84if (project.Projection.ResultType.EdmType.BuiltInTypeKind != BuiltInTypeKind.EntityType) { return false; }
System\Data\Mapping\ViewGeneration\Structures\CaseStatement.cs (1)
342Debug.Assert(typeConstructor != null && typeConstructor.ResultType.EdmType.BuiltInTypeKind == BuiltInTypeKind.EntityType,
System\Data\Mapping\ViewGeneration\Structures\MemberPath.cs (2)
550return this.EdmType.BuiltInTypeKind == BuiltInTypeKind.PrimitiveType || 551this.EdmType.BuiltInTypeKind == BuiltInTypeKind.EnumType;
System\Data\Mapping\ViewGeneration\Structures\ScalarConstant.cs (2)
80if (BuiltInTypeKind.PrimitiveType == modelType.BuiltInTypeKind) 109else if (BuiltInTypeKind.EnumType == modelType.BuiltInTypeKind)
System\Data\Mapping\ViewValidator.cs (6)
130if (expression.Property.BuiltInTypeKind != BuiltInTypeKind.EdmProperty) 133_setMapping.Set.Name, expression.Property.Name, expression.Property.BuiltInTypeKind), (int)StorageMappingErrorCode.MappingUnsupportedPropertyKindQueryView, 144if (type.BuiltInTypeKind != BuiltInTypeKind.RowType) 149!(type.BuiltInTypeKind == BuiltInTypeKind.ComplexType && GetComplexTypes().Contains((ComplexType)type))) 195else if (_elementType.BuiltInTypeKind == BuiltInTypeKind.EntityType) 379if (expression.ResultType.EdmType.BuiltInTypeKind == BuiltInTypeKind.AssociationType)
System\Data\Metadata\ClrPerspective.cs (1)
101if (map.EdmItem.BuiltInTypeKind == BuiltInTypeKind.PrimitiveType)
System\Data\Metadata\Converter.cs (1)
731Debug.Assert(somProperty.TypeUsage.EdmType.BuiltInTypeKind == BuiltInTypeKind.PrimitiveType);
System\Data\Metadata\Edm\CollectionType.cs (1)
96if (null == item || BuiltInTypeKind.CollectionType != item.BuiltInTypeKind) { return false; }
System\Data\Metadata\Edm\GlobalItem.cs (4)
52Debug.Assert(GetDataSpace() != (DataSpace)(-1) || this.BuiltInTypeKind == BuiltInTypeKind.RowType || this.BuiltInTypeKind == BuiltInTypeKind.CollectionType, "DataSpace must have some valid value"); 59Debug.Assert(GetDataSpace() == (DataSpace)(-1) || GetDataSpace() == value || this.BuiltInTypeKind == BuiltInTypeKind.RowType || this.BuiltInTypeKind == BuiltInTypeKind.CollectionType, "Invalid Value being set for DataSpace");
System\Data\Metadata\Edm\MetadataItem.cs (2)
145(this.BuiltInTypeKind == item.BuiltInTypeKind &&
System\Data\Metadata\Edm\RowType.cs (1)
204if (null == item || BuiltInTypeKind.RowType != item.BuiltInTypeKind) { return false; }
System\Data\Metadata\Edm\StructuralType.cs (2)
107Debug.Assert(this.DataSpace == member.TypeUsage.EdmType.DataSpace || this.BuiltInTypeKind == BuiltInTypeKind.RowType, "Wrong member type getting added in structural type"); 111if (BuiltInTypeKind.RowType == this.BuiltInTypeKind)
System\Data\Metadata\Edm\TypeUsage.cs (1)
608if (null == item || BuiltInTypeKind.TypeUsage != item.BuiltInTypeKind) { return false; }
System\Data\Metadata\EdmItemCollection.cs (1)
318if (globalItem.BuiltInTypeKind == BuiltInTypeKind.EdmFunction && globalItem.DataSpace == DataSpace.SSpace)
System\Data\Metadata\EdmValidator.cs (2)
168switch (item.BuiltInTypeKind) 210Debug.Assert(false, "An instance with a built in type kind refering to the abstract type " + item.BuiltInTypeKind + " is encountered");
System\Data\Metadata\Helper.cs (18)
138switch (edmType.BuiltInTypeKind) 238return (BuiltInTypeKind.CollectionType == item.BuiltInTypeKind); 243return (BuiltInTypeKind.EntityType == type.BuiltInTypeKind); 248return (BuiltInTypeKind.ComplexType == type.BuiltInTypeKind); 253return (BuiltInTypeKind.PrimitiveType == type.BuiltInTypeKind); 258return (BuiltInTypeKind.RefType == item.BuiltInTypeKind); 263return (BuiltInTypeKind.RowType == item.BuiltInTypeKind); 268return (BuiltInTypeKind.AssociationType == type.BuiltInTypeKind); 273return (BuiltInTypeKind.AssociationType == type.BuiltInTypeKind); 278return (BuiltInTypeKind.EdmProperty == member.BuiltInTypeKind); 283return (BuiltInTypeKind.AssociationEndMember == member.BuiltInTypeKind); 288return (BuiltInTypeKind.AssociationEndMember == member.BuiltInTypeKind); 293return (BuiltInTypeKind.NavigationProperty == member.BuiltInTypeKind); 321return BuiltInTypeKind.EntityContainer == item.BuiltInTypeKind; 326return BuiltInTypeKind.EdmFunction == item.BuiltInTypeKind; 345return BuiltInTypeKind.EnumType == edmType.BuiltInTypeKind; 437return (type.EdmType.BuiltInTypeKind == BuiltInTypeKind.PrimitiveType && IsSpatialType((PrimitiveType)type.EdmType)); 442if (type.EdmType.BuiltInTypeKind == BuiltInTypeKind.PrimitiveType)
System\Data\Metadata\ObjectLayer\ObjectItemAttributeAssemblyLoader.cs (4)
536if (!TryGetLoadedType(propertyInfo.PropertyType, out propertyType) || !(propertyType.BuiltInTypeKind == BuiltInTypeKind.EntityType || propertyType.BuiltInTypeKind == BuiltInTypeKind.CollectionType)) 685if (declaringType.BuiltInTypeKind == BuiltInTypeKind.EntityType && edmScalarPropertyAttribute.EntityKeyProperty) 699if (!TryGetLoadedType(clrProperty.PropertyType, out propertyType) || propertyType.BuiltInTypeKind != BuiltInTypeKind.ComplexType)
System\Data\Metadata\ObjectLayer\ObjectItemLoadingSessionData.cs (1)
82if ((edmType is StructuralType && edmType.BuiltInTypeKind != BuiltInTypeKind.AssociationType) || Helper.IsEnumType(edmType))
System\Data\Metadata\TypeHelpers.cs (4)
341if (type != null && type.EdmType != null && type.EdmType.BuiltInTypeKind == BuiltInTypeKind.PrimitiveType) 497switch (edmType.BuiltInTypeKind) 529switch (edmType.BuiltInTypeKind) 554switch (edmType.BuiltInTypeKind)
System\Data\Metadata\TypeSemantics.cs (7)
349return (BuiltInTypeKind.ComplexType == type.EdmType.BuiltInTypeKind); 369return (BuiltInTypeKind.AssociationType == type.EdmType.BuiltInTypeKind); 1043if (fromType.EdmType.BuiltInTypeKind != toType.EdmType.BuiltInTypeKind) 1051if (fromType.EdmType.BuiltInTypeKind == BuiltInTypeKind.CollectionType) 1058else if (fromType.EdmType.BuiltInTypeKind == BuiltInTypeKind.RefType) 1063else if (fromType.EdmType.BuiltInTypeKind == BuiltInTypeKind.RowType)
System\Data\Objects\DataRecordObjectView.cs (1)
158if (fieldDescriptor != null && fieldDescriptor.EdmProperty != null && fieldDescriptor.EdmProperty.TypeUsage.EdmType.BuiltInTypeKind == BuiltInTypeKind.RowType)
System\Data\Objects\ELinq\ExpressionConverter.cs (8)
949BuiltInTypeKind typeKind = typeUsage.EdmType.BuiltInTypeKind; 981if (BuiltInTypeKind.CollectionType == left.EdmType.BuiltInTypeKind && 982BuiltInTypeKind.CollectionType == right.EdmType.BuiltInTypeKind) 990if (BuiltInTypeKind.PrimitiveType == left.EdmType.BuiltInTypeKind && 991BuiltInTypeKind.PrimitiveType == right.EdmType.BuiltInTypeKind) 1074switch (edmType.EdmType.BuiltInTypeKind) 1186if (leftType.EdmType.BuiltInTypeKind == BuiltInTypeKind.RefType && rightType.EdmType.BuiltInTypeKind == BuiltInTypeKind.RefType)
System\Data\Objects\ELinq\InitializerFacet.cs (1)
52if (BuiltInTypeKind.RowType == typeUsage.EdmType.BuiltInTypeKind)
System\Data\Objects\ELinq\MethodCallTranslator.cs (5)
634BuiltInTypeKind type = argumentExpr.ResultType.EdmType.BuiltInTypeKind; 730BuiltInTypeKind modelType = actualReturnType.EdmType.BuiltInTypeKind; 2617if (crossApply.Input.VariableType.EdmType.BuiltInTypeKind != BuiltInTypeKind.RowType) 2929project.Projection.ResultType.EdmType.BuiltInTypeKind != BuiltInTypeKind.RowType) 2959innerProject.Projection.ResultType.EdmType.BuiltInTypeKind != BuiltInTypeKind.RowType)
System\Data\Objects\ELinq\Translator.cs (2)
312if (member.BuiltInTypeKind == BuiltInTypeKind.NavigationProperty) 362if (BuiltInTypeKind.CollectionType == propertyExpression.ResultType.EdmType.BuiltInTypeKind)
System\Data\Objects\FieldDescriptor.cs (1)
59switch (edmType.BuiltInTypeKind)
System\Data\Objects\Internal\EntityProxyFactory.cs (3)
1090if (member.BuiltInTypeKind == BuiltInTypeKind.EdmProperty) 1097else if (member.BuiltInTypeKind == BuiltInTypeKind.NavigationProperty) 1208Debug.Assert(member.BuiltInTypeKind == BuiltInTypeKind.NavigationProperty);
System\Data\Objects\Internal\LazyLoadBehavior.cs (3)
58Debug.Assert(member.BuiltInTypeKind == BuiltInTypeKind.NavigationProperty, "member should represent a navigation property"); 59if (member.BuiltInTypeKind == BuiltInTypeKind.NavigationProperty) 121if (member.BuiltInTypeKind == BuiltInTypeKind.NavigationProperty)
System\Data\Objects\Internal\ObjectFullSpanRewriter.cs (3)
172if (BuiltInTypeKind.EntityType == resultType.EdmType.BuiltInTypeKind) 177else if (BuiltInTypeKind.CollectionType == resultType.EdmType.BuiltInTypeKind) 182if (BuiltInTypeKind.EntityType == elementType.BuiltInTypeKind)
System\Data\Objects\Internal\ObjectQueryExecutionPlan.cs (2)
118if (treeResultType.EdmType.BuiltInTypeKind == BuiltInTypeKind.CollectionType) 197if (ResultType.EdmType.BuiltInTypeKind == BuiltInTypeKind.CollectionType)
System\Data\Objects\Internal\ObjectSpanRewriter.cs (1)
177switch(expression.ResultType.EdmType.BuiltInTypeKind)
System\Data\Objects\ObjectViewFactory.cs (1)
320if (ospaceEdmType.BuiltInTypeKind == BuiltInTypeKind.RowType)
System\Data\Objects\SpanIndex.cs (1)
74Debug.Assert(originalRowType.EdmType.BuiltInTypeKind == BuiltInTypeKind.RowType, "Original RowType must be a RowType");
System\Data\Query\PlanCompiler\CTreeGenerator.cs (1)
1332PlanCompiler.Assert(expr.ResultType.EdmType.BuiltInTypeKind == BuiltInTypeKind.CollectionType,
System\Data\Query\PlanCompiler\ITreeGenerator.cs (4)
1240if (BuiltInTypeKind.EdmProperty != e.Property.BuiltInTypeKind && 1241BuiltInTypeKind.AssociationEndMember != e.Property.BuiltInTypeKind && 1242BuiltInTypeKind.NavigationProperty != e.Property.BuiltInTypeKind) 2769if (input.Op.Type.EdmType.BuiltInTypeKind == BuiltInTypeKind.RowType)
System\Data\Query\PlanCompiler\PreProcessor.cs (1)
1733if (op.Scoped || op.Type.EdmType.BuiltInTypeKind != BuiltInTypeKind.EntityType)
System\Data\Query\PlanCompiler\StructuredTypeInfo.cs (1)
437if (type.BuiltInTypeKind != md.BuiltInTypeKind.EntityType)
System\Data\SqlClient\SqlGen\DmlSqlGenerator.cs (1)
421if (typeUsage.EdmType.BuiltInTypeKind != BuiltInTypeKind.PrimitiveType)
System\Data\SqlClient\SqlProviderManifest.cs (1)
516System.Diagnostics.Debug.Assert(edmType.EdmType.BuiltInTypeKind == BuiltInTypeKind.PrimitiveType);
System\Data\SqlClient\SqlProviderServices.cs (2)
653Debug.Assert(type.EdmType.BuiltInTypeKind == BuiltInTypeKind.PrimitiveType && 687Debug.Assert(type.EdmType.BuiltInTypeKind == BuiltInTypeKind.PrimitiveType &&
System\Data\SqlClient\SqlProviderUtilities.cs (1)
366if (type.EdmType.BuiltInTypeKind == BuiltInTypeKind.PrimitiveType && typeName.EndsWith(maxSuffix, StringComparison.Ordinal))
System.Data.Entity.Design (33)
System\Data\Entity\Design\Common\MetadataItemSerializer.cs (10)
130switch (type.BuiltInTypeKind) 148throw EDesignUtil.NonSerializableType(type.BuiltInTypeKind); 162bool collection = returnTypeUsage.EdmType.BuiltInTypeKind == BuiltInTypeKind.CollectionType; 219if (function.ReturnParameter.TypeUsage.EdmType.BuiltInTypeKind == BuiltInTypeKind.CollectionType) 223Debug.Assert(elementType.BuiltInTypeKind == BuiltInTypeKind.RowType, "TVF return type is expected to be Collection(RowType)"); 484type.BuiltInTypeKind == BuiltInTypeKind.PrimitiveType) 612if (type.BuiltInTypeKind == BuiltInTypeKind.PrimitiveType) 624if (edmType.BuiltInTypeKind != BuiltInTypeKind.PrimitiveType) 782if (type.BuiltInTypeKind == BuiltInTypeKind.CollectionType) 788if (type.BuiltInTypeKind == BuiltInTypeKind.PrimitiveType)
System\Data\Entity\Design\Common\MetadataUtil.cs (4)
292return (BuiltInTypeKind.CollectionType == item.BuiltInTypeKind); 297return (BuiltInTypeKind.ComplexType == type.BuiltInTypeKind); 302return (BuiltInTypeKind.PrimitiveType == type.BuiltInTypeKind); 335return (BuiltInTypeKind.EnumType == type.BuiltInTypeKind);
System\Data\Entity\Design\Common\OneToOneMappingSerializer.cs (4)
321Debug.Assert(functionImport.ReturnParameter.TypeUsage.EdmType.BuiltInTypeKind == BuiltInTypeKind.CollectionType, "functionImport is expected to return Collection(ComplexType)"); 323Debug.Assert(modelCollectionType.TypeUsage.EdmType.BuiltInTypeKind == BuiltInTypeKind.ComplexType, "functionImport is expected to return Collection(ComplexType)"); 497Debug.Assert(store.TypeUsage.EdmType.BuiltInTypeKind == BuiltInTypeKind.PrimitiveType, "only expect scalar type properties"); 498Debug.Assert(model.TypeUsage.EdmType.BuiltInTypeKind == BuiltInTypeKind.PrimitiveType, "only expect scalar type properties");
System\Data\Entity\Design\EntityModelSchemaGenerator.cs (4)
987Debug.Assert(storeConstraint.ToProperties[0].DeclaringType.BuiltInTypeKind == BuiltInTypeKind.EntityType, "The property is not from an EntityType"); 1030Debug.Assert(storeConstraint.ToProperties[0].DeclaringType.BuiltInTypeKind == BuiltInTypeKind.EntityType, "The property is not from an EntityType"); 1086Debug.Assert(storeEndMember.TypeUsage.EdmType.BuiltInTypeKind == BuiltInTypeKind.RefType, "The type is not a ref type"); 1087Debug.Assert(((RefType)storeEndMember.TypeUsage.EdmType).ElementType.BuiltInTypeKind == BuiltInTypeKind.EntityType, "the ref is not holding on to an EntityType");
System\Data\Entity\Design\EntityStoreSchemaGenerator.cs (1)
1604Debug.Assert(member.BuiltInTypeKind == BuiltInTypeKind.EdmProperty, "Every member must be a edmproperty");
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (2)
206AddError(Strings.ItemExistsWithDifferentCase(item.BuiltInTypeKind.ToString(), item.Identity), ModelBuilderErrorCode.IncompatibleSettingForCaseSensitiveOption, 456if (type.BuiltInTypeKind == BuiltInTypeKind.PrimitiveType)
System\Data\EntityModel\Emitters\CommentEmitter.cs (1)
60switch (item.BuiltInTypeKind)
System\Data\EntityModel\Emitters\NamespaceEmitter.cs (6)
127if (element.BuiltInTypeKind == BuiltInTypeKind.EntityContainer) 129return TryAddNameToCache((element as EntityContainer).Name, element.BuiltInTypeKind.ToString(), cache); 131else if (element.BuiltInTypeKind == BuiltInTypeKind.EntityType || 132element.BuiltInTypeKind == BuiltInTypeKind.ComplexType || 133element.BuiltInTypeKind == BuiltInTypeKind.AssociationType) 135return TryAddNameToCache((element as StructuralType).Name, element.BuiltInTypeKind.ToString(), cache);
System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (1)
330Debug.Assert(endMember.TypeUsage.EdmType.BuiltInTypeKind == BuiltInTypeKind.RefType, "not a reference type");
System.Data.Services (15)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (15)
856if (edmType.BuiltInTypeKind == BuiltInTypeKind.EntityType || 857edmType.BuiltInTypeKind == BuiltInTypeKind.ComplexType) 1039edmType.BuiltInTypeKind == BuiltInTypeKind.EntityType || edmType.BuiltInTypeKind == BuiltInTypeKind.ComplexType, 1216if (type.BuiltInTypeKind != BuiltInTypeKind.PrimitiveType) 1310edmType.BuiltInTypeKind == BuiltInTypeKind.EntityType || 1311edmType.BuiltInTypeKind == BuiltInTypeKind.ComplexType, 1346ResourceTypeKind resourceTypeKind = cspaceType.BuiltInTypeKind == BuiltInTypeKind.EntityType ? ResourceTypeKind.EntityType : ResourceTypeKind.ComplexType; 1398switch (member.TypeUsage.EdmType.BuiltInTypeKind) 1408if (edmType.BuiltInTypeKind == BuiltInTypeKind.EntityType && 1434Debug.Assert(false, "Invalid member type encountered on " + member.Name + " - " + member.TypeUsage.EdmType.BuiltInTypeKind); 1729if (member.BuiltInTypeKind == BuiltInTypeKind.EdmProperty) 1739BuiltInTypeKind.NavigationProperty == member.BuiltInTypeKind, 1812switch (edmType.BuiltInTypeKind) 2593if (member.BuiltInTypeKind == BuiltInTypeKind.NavigationProperty)
System.Data.Services.Design (28)
System\Data\EntityModel\Emitters\AttributeEmitter.cs (4)
330if (subProperty.TypeUsage.EdmType.BuiltInTypeKind == BuiltInTypeKind.ComplexType) 381new EdmInfo { IsComplex = redefinedProperty.TypeUsage.EdmType.BuiltInTypeKind == BuiltInTypeKind.ComplexType, Member = redefinedProperty }, 395if (entityProperty.TypeUsage.EdmType.BuiltInTypeKind == BuiltInTypeKind.ComplexType && propertyInformation.PathGiven) 419new EdmInfo { IsComplex = entityPropertyCurrent.TypeUsage.EdmType.BuiltInTypeKind == BuiltInTypeKind.ComplexType, Member = entityPropertyCurrent },
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (14)
27return (BuiltInTypeKind.CollectionType == item.BuiltInTypeKind); 31return (BuiltInTypeKind.ComplexType == type.BuiltInTypeKind); 39return (BuiltInTypeKind.PrimitiveType == type.BuiltInTypeKind); 499switch (item.BuiltInTypeKind) 510Debug.Assert(false, item.BuiltInTypeKind.ToString()); 712if (eventArgs.TypeSource.BuiltInTypeKind != BuiltInTypeKind.EntityType && 713eventArgs.TypeSource.BuiltInTypeKind != BuiltInTypeKind.ComplexType) 718if (eventArgs.TypeSource.BuiltInTypeKind == BuiltInTypeKind.EntityType) 736if (this.GetSourceTypes().Where(x => x.BuiltInTypeKind == BuiltInTypeKind.EntityType).Where(x => ((EntityType)x).Name == eventArgs.BaseType.BaseType).Count() != 0) 814if (eventArgs.PropertySource.BuiltInTypeKind != BuiltInTypeKind.EdmProperty && 815eventArgs.PropertySource.BuiltInTypeKind != BuiltInTypeKind.NavigationProperty) 820if (((EdmMember)eventArgs.PropertySource).DeclaringType.BuiltInTypeKind != BuiltInTypeKind.EntityType && 821((EdmMember)eventArgs.PropertySource).DeclaringType.BuiltInTypeKind != BuiltInTypeKind.ComplexType) 826string name = eventArgs.PropertySource.BuiltInTypeKind == BuiltInTypeKind.EdmProperty ? ((EdmProperty)eventArgs.PropertySource).Name : ((NavigationProperty)eventArgs.PropertySource).Name;
System\Data\EntityModel\Emitters\CommentEmitter.cs (1)
53switch (item.BuiltInTypeKind)
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (2)
82(a.BuiltInTypeKind == BuiltInTypeKind.ComplexType || a.BuiltInTypeKind == BuiltInTypeKind.EntityType)
System\Data\EntityModel\Emitters\NamespaceEmitter.cs (6)
177if (element.BuiltInTypeKind == BuiltInTypeKind.EntityContainer) 179return TryAddNameToCache((element as EntityContainer).Name, element.BuiltInTypeKind.ToString(), cache); 181else if (element.BuiltInTypeKind == BuiltInTypeKind.EntityType || 182element.BuiltInTypeKind == BuiltInTypeKind.ComplexType || 183element.BuiltInTypeKind == BuiltInTypeKind.AssociationType) 185return TryAddNameToCache((element as StructuralType).Name, element.BuiltInTypeKind.ToString(), cache);
System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (1)
327Debug.Assert((BuiltInTypeKind.RefType == endMember.TypeUsage.EdmType.BuiltInTypeKind), "not a reference type");
System.Web.Entity (9)
System\Data\WebControls\EntityDataSourceUtil.cs (9)
61switch (tu.EdmType.BuiltInTypeKind) 703memberType.BuiltInTypeKind == BuiltInTypeKind.ComplexType || 704memberType.BuiltInTypeKind == BuiltInTypeKind.EntityType, "member type must be primitive, enum, entity or complex type"); 710clrType = memberType.BuiltInTypeKind == BuiltInTypeKind.PrimitiveType ? 729memberType.BuiltInTypeKind == BuiltInTypeKind.EntityType || memberType.BuiltInTypeKind == BuiltInTypeKind.ComplexType, 853return type.BuiltInTypeKind == BuiltInTypeKind.PrimitiveType || 854type.BuiltInTypeKind == BuiltInTypeKind.EnumType; 993if (propertyType.BuiltInTypeKind == BuiltInTypeKind.ComplexType)
System.Web.Entity.Design (2)
System\Data\WebControls\Design\EntityDataSourceDataSelection.cs (2)
609if (member.TypeUsage.EdmType.BuiltInTypeKind == BuiltInTypeKind.ComplexType) 614else if (member.BuiltInTypeKind == BuiltInTypeKind.NavigationProperty)