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\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");