1 type derived from ComplexType
System.Data.Entity (1)
System\Data\Metadata\Edm\ComplexType.cs (1)
95internal sealed class ClrComplexType : ComplexType
37 instantiations of ComplexType
System.Data.Entity (37)
System\Data\Metadata\Converter.cs (1)
403ComplexType complexType = new ComplexType(element.Name,
System\Data\Metadata\Edm\MetadataItem_Static.cs (36)
35_builtInTypes[(int)BuiltInTypeKind.AssociationEndMember] = new ComplexType(); 36_builtInTypes[(int)BuiltInTypeKind.AssociationSet] = new ComplexType(); 37_builtInTypes[(int)BuiltInTypeKind.AssociationSetEnd] = new ComplexType(); 38_builtInTypes[(int)BuiltInTypeKind.AssociationType] = new ComplexType(); 39_builtInTypes[(int)BuiltInTypeKind.AssociationType] = new ComplexType(); 41_builtInTypes[(int)BuiltInTypeKind.CollectionType] = new ComplexType(); 42_builtInTypes[(int)BuiltInTypeKind.ComplexType] = new ComplexType(); 43_builtInTypes[(int)BuiltInTypeKind.Documentation] = new ComplexType(); 45_builtInTypes[(int)BuiltInTypeKind.EdmType] = new ComplexType(); 46_builtInTypes[(int)BuiltInTypeKind.EntityContainer] = new ComplexType(); 47_builtInTypes[(int)BuiltInTypeKind.EntitySet] = new ComplexType(); 48_builtInTypes[(int)BuiltInTypeKind.EntityType] = new ComplexType(); 49_builtInTypes[(int)BuiltInTypeKind.EntitySetBase] = new ComplexType(); 50_builtInTypes[(int)BuiltInTypeKind.EntityTypeBase] = new ComplexType(); 51_builtInTypes[(int)BuiltInTypeKind.EnumType] = new ComplexType(); 52_builtInTypes[(int)BuiltInTypeKind.EnumMember] = new ComplexType(); 53_builtInTypes[(int)BuiltInTypeKind.Facet] = new ComplexType(); 54_builtInTypes[(int)BuiltInTypeKind.EdmFunction] = new ComplexType(); 55_builtInTypes[(int)BuiltInTypeKind.FunctionParameter] = new ComplexType(); 56_builtInTypes[(int)BuiltInTypeKind.GlobalItem] = new ComplexType(); 57_builtInTypes[(int)BuiltInTypeKind.MetadataProperty] = new ComplexType(); 58_builtInTypes[(int)BuiltInTypeKind.NavigationProperty] = new ComplexType(); 59_builtInTypes[(int)BuiltInTypeKind.MetadataItem] = new ComplexType(); 60_builtInTypes[(int)BuiltInTypeKind.EdmMember] = new ComplexType(); 62_builtInTypes[(int)BuiltInTypeKind.PrimitiveType] = new ComplexType(); 64_builtInTypes[(int)BuiltInTypeKind.EdmProperty] = new ComplexType(); 65_builtInTypes[(int)BuiltInTypeKind.ProviderManifest] = new ComplexType(); 66_builtInTypes[(int)BuiltInTypeKind.ReferentialConstraint] = new ComplexType(); 67_builtInTypes[(int)BuiltInTypeKind.RefType] = new ComplexType(); 68_builtInTypes[(int)BuiltInTypeKind.RelationshipEndMember] = new ComplexType(); 70_builtInTypes[(int)BuiltInTypeKind.RelationshipSet] = new ComplexType(); 71_builtInTypes[(int)BuiltInTypeKind.RelationshipType] = new ComplexType(); 72_builtInTypes[(int)BuiltInTypeKind.RowType] = new ComplexType(); 73_builtInTypes[(int)BuiltInTypeKind.SimpleType] = new ComplexType(); 74_builtInTypes[(int)BuiltInTypeKind.StructuralType] = new ComplexType(); 75_builtInTypes[(int)BuiltInTypeKind.TypeUsage] = new ComplexType();
183 references to ComplexType
System.Data.Entity (148)
System\Data\Common\EntitySql\CqlErrorHelper.cs (4)
176ComplexType leftComplex = (ComplexType)leftType.EdmType; 177ComplexType rightComplex = (ComplexType)rightType.EdmType;
System\Data\Common\Internal\Materialization\Translator.cs (2)
1165ComplexType complexType = (ComplexType)columnMap.Type.EdmType;
System\Data\Common\Utils\MetadataHelper.cs (3)
34|| typeof(ComplexType).Equals(typeof(T)) && resultType is ComplexType 375foreach (EdmType subType in GetTypeAndSubtypesOf<ComplexType>(type, itemCollection, includeAbstractTypes))
System\Data\EntityClient\EntityCommandDefinition.cs (2)
225ComplexType complexType = resultType as ComplexType;
System\Data\Mapping\BaseMetadataMappingVisitor.cs (4)
232Visit((ComplexType)edmType); 278protected virtual void Visit(ComplexType complexType) 414foreach (var type in storageComplexTypeMapping.IsOfTypes) 419foreach (var type in storageComplexTypeMapping.Types)
System\Data\Mapping\DefaultObjectMappingItemCollection.cs (4)
796ComplexType edmComplexType = (ComplexType)containingEdmMember.TypeUsage.EdmType; 797ComplexType objectComplexType = (ComplexType)containingClrMember.TypeUsage.EdmType;
System\Data\Mapping\FunctionImportMapping.ReturnTypeRenameMapping.cs (2)
74internal readonly ComplexType ReturnType; 76internal FunctionImportComplexTypeMapping(ComplexType returnType, Collection<FunctionImportReturnTypePropertyMapping> columnsRenameList, LineInfo lineInfo)
System\Data\Mapping\MetadataMappingHasherVisitor.cs (1)
638protected override void Visit(ComplexType complexType)
System\Data\Mapping\StorageComplexTypeMapping.cs (15)
37private Dictionary<string, ComplexType> m_types = new Dictionary<string, ComplexType>(StringComparer.Ordinal); //Types for which the mapping holds true for. 38private Dictionary<string, ComplexType> m_isOfTypes = new Dictionary<string, ComplexType>(StringComparer.Ordinal); //Types for which the mapping holds true for 46internal ReadOnlyCollection<ComplexType> Types { 48return new List<ComplexType>(m_types.Values).AsReadOnly(); 56internal ReadOnlyCollection<ComplexType> IsOfTypes { 58return new List<ComplexType>(m_isOfTypes.Values).AsReadOnly(); 99internal void AddType(ComplexType type) { 106internal void AddIsOfType(ComplexType type) { 144internal ComplexType GetOwnerType(string memberName) { 145foreach (ComplexType type in m_types.Values) { 153foreach (ComplexType type in m_isOfTypes.Values) 178foreach (ComplexType type in m_types.Values) { 183foreach (ComplexType type in m_isOfTypes.Values) {
System\Data\Mapping\StorageMappingItemLoader.cs (17)
1885ComplexType resultComplexType; 1886if (MetadataHelper.TryGetFunctionImportReturnType<ComplexType>(functionImport, resultSetIndex, out resultComplexType)) 1912ComplexType resultComplexType, 1919ComplexType complexType; 1936private bool TryParseComplexTypeAttribute(XPathNavigator nav, ComplexType resultComplexType, EdmFunction functionImport, out ComplexType complexType) 1942if (!this.EdmItemCollection.TryGetItem<ComplexType>(complexTypeName, out complexType)) 2116(ComplexType)resultType, 2168ComplexType resultComplexType; 2169if (MetadataHelper.TryGetFunctionImportReturnType<ComplexType>(functionImport, 0, out resultComplexType)) 2962memberType = memberType as ComplexType; 3020typeMapping.AddType(type as ComplexType); 3051ComplexType complexType; 3052this.EdmItemCollection.TryGetItem<ComplexType>(currentTypeName, out complexType); 3932ComplexType complexType; 4111private EdmMember LoadComplexTypeProperty(XPathNavigator nav, StructuralType type, out ComplexType complexType) 4137!m_edmItemCollection.TryGetItem<ComplexType>(typeName, out complexType))
System\Data\Mapping\ViewGeneration\CellCreator.cs (1)
413IEnumerable<EdmType> exactTypes = Helpers.AsSuperTypeList<ComplexType, EdmType>(complexTypeMap.Types);
System\Data\Mapping\ViewGeneration\Structures\MemberProjectionIndex.cs (4)
190ComplexType complexTypemember = memberType as ComplexType; 197if (memberType is ComplexType && needKeysOnly) 245Debug.Assert(structuralMember.TypeUsage.EdmType is ComplexType ||
System\Data\Mapping\ViewValidator.cs (6)
149!(type.BuiltInTypeKind == BuiltInTypeKind.ComplexType && GetComplexTypes().Contains((ComplexType)type))) 162private IEnumerable<ComplexType> GetComplexTypes() 172private IEnumerable<ComplexType> GetComplexTypes(IEnumerable<EdmProperty> properties) 175foreach (ComplexType complexType in properties.Select(p => p.TypeUsage.EdmType).OfType<ComplexType>()) 178foreach (ComplexType nestedComplexType in GetComplexTypes(complexType.Properties))
System\Data\Metadata\Converter.cs (2)
398private static ComplexType ConvertToComplexType(Som.SchemaComplexType element, 403ComplexType complexType = new ComplexType(element.Name,
System\Data\Metadata\Edm\MetadataItem_Static.cs (73)
82InitializeBuiltInTypes((ComplexType)GetBuiltInType(BuiltInTypeKind.MetadataItem), 88InitializeBuiltInTypes((ComplexType)GetBuiltInType(BuiltInTypeKind.MetadataProperty), 91(ComplexType)GetBuiltInType(BuiltInTypeKind.MetadataItem)); 93InitializeBuiltInTypes((ComplexType)GetBuiltInType(BuiltInTypeKind.GlobalItem), 96(ComplexType)GetBuiltInType(BuiltInTypeKind.MetadataItem)); 98InitializeBuiltInTypes((ComplexType)GetBuiltInType(BuiltInTypeKind.TypeUsage), 101(ComplexType)GetBuiltInType(BuiltInTypeKind.MetadataItem)); 104InitializeBuiltInTypes((ComplexType)GetBuiltInType(BuiltInTypeKind.EdmType), 107(ComplexType)GetBuiltInType(BuiltInTypeKind.GlobalItem)); 109InitializeBuiltInTypes((ComplexType)GetBuiltInType(BuiltInTypeKind.SimpleType), 112(ComplexType)GetBuiltInType(BuiltInTypeKind.EdmType)); 114InitializeBuiltInTypes((ComplexType)GetBuiltInType(BuiltInTypeKind.EnumType), 117(ComplexType)GetBuiltInType(BuiltInTypeKind.SimpleType)); 119InitializeBuiltInTypes((ComplexType)GetBuiltInType(BuiltInTypeKind.PrimitiveType), 122(ComplexType)GetBuiltInType(BuiltInTypeKind.SimpleType)); 124InitializeBuiltInTypes((ComplexType)GetBuiltInType(BuiltInTypeKind.CollectionType), 127(ComplexType)GetBuiltInType(BuiltInTypeKind.EdmType)); 129InitializeBuiltInTypes((ComplexType)GetBuiltInType(BuiltInTypeKind.RefType), 132(ComplexType)GetBuiltInType(BuiltInTypeKind.EdmType)); 134InitializeBuiltInTypes((ComplexType)GetBuiltInType(BuiltInTypeKind.EdmMember), 137(ComplexType)GetBuiltInType(BuiltInTypeKind.MetadataItem)); 139InitializeBuiltInTypes((ComplexType)GetBuiltInType(BuiltInTypeKind.EdmProperty), 142(ComplexType)GetBuiltInType(BuiltInTypeKind.EdmMember)); 144InitializeBuiltInTypes((ComplexType)GetBuiltInType(BuiltInTypeKind.NavigationProperty), 147(ComplexType)GetBuiltInType(BuiltInTypeKind.EdmMember)); 149InitializeBuiltInTypes((ComplexType)GetBuiltInType(BuiltInTypeKind.ProviderManifest), 152(ComplexType)GetBuiltInType(BuiltInTypeKind.MetadataItem)); 154InitializeBuiltInTypes((ComplexType)GetBuiltInType(BuiltInTypeKind.RelationshipEndMember), 157(ComplexType)GetBuiltInType(BuiltInTypeKind.EdmMember)); 159InitializeBuiltInTypes((ComplexType)GetBuiltInType(BuiltInTypeKind.AssociationEndMember), 162(ComplexType)GetBuiltInType(BuiltInTypeKind.RelationshipEndMember)); 164InitializeBuiltInTypes((ComplexType)GetBuiltInType(BuiltInTypeKind.EnumMember), 167(ComplexType)GetBuiltInType(BuiltInTypeKind.MetadataItem)); 169InitializeBuiltInTypes((ComplexType)GetBuiltInType(BuiltInTypeKind.ReferentialConstraint), 172(ComplexType)GetBuiltInType(BuiltInTypeKind.MetadataItem)); 175InitializeBuiltInTypes((ComplexType)GetBuiltInType(BuiltInTypeKind.StructuralType), 178(ComplexType)GetBuiltInType(BuiltInTypeKind.EdmType)); 180InitializeBuiltInTypes((ComplexType)GetBuiltInType(BuiltInTypeKind.RowType), 183(ComplexType)GetBuiltInType(BuiltInTypeKind.StructuralType)); 185InitializeBuiltInTypes((ComplexType)GetBuiltInType(BuiltInTypeKind.ComplexType), 188(ComplexType)GetBuiltInType(BuiltInTypeKind.StructuralType)); 190InitializeBuiltInTypes((ComplexType)GetBuiltInType(BuiltInTypeKind.EntityTypeBase), 193(ComplexType)GetBuiltInType(BuiltInTypeKind.StructuralType)); 195InitializeBuiltInTypes((ComplexType)GetBuiltInType(BuiltInTypeKind.EntityType), 198(ComplexType)GetBuiltInType(BuiltInTypeKind.EntityTypeBase)); 200InitializeBuiltInTypes((ComplexType)GetBuiltInType(BuiltInTypeKind.RelationshipType), 203(ComplexType)GetBuiltInType(BuiltInTypeKind.EntityTypeBase)); 205InitializeBuiltInTypes((ComplexType)GetBuiltInType(BuiltInTypeKind.AssociationType), 208(ComplexType)GetBuiltInType(BuiltInTypeKind.RelationshipType)); 210InitializeBuiltInTypes((ComplexType)GetBuiltInType(BuiltInTypeKind.Facet), 213(ComplexType)GetBuiltInType(BuiltInTypeKind.MetadataItem)); 215InitializeBuiltInTypes((ComplexType)GetBuiltInType(BuiltInTypeKind.EntityContainer), 218(ComplexType)GetBuiltInType(BuiltInTypeKind.GlobalItem)); 220InitializeBuiltInTypes((ComplexType)GetBuiltInType(BuiltInTypeKind.EntitySetBase), 223(ComplexType)GetBuiltInType(BuiltInTypeKind.MetadataItem)); 225InitializeBuiltInTypes((ComplexType)GetBuiltInType(BuiltInTypeKind.EntitySet), 228(ComplexType)GetBuiltInType(BuiltInTypeKind.EntitySetBase)); 231InitializeBuiltInTypes((ComplexType)GetBuiltInType(BuiltInTypeKind.RelationshipSet), 234(ComplexType)GetBuiltInType(BuiltInTypeKind.EntitySetBase)); 236InitializeBuiltInTypes((ComplexType)GetBuiltInType(BuiltInTypeKind.AssociationSet), 239(ComplexType)GetBuiltInType(BuiltInTypeKind.RelationshipSet)); 241InitializeBuiltInTypes((ComplexType)GetBuiltInType(BuiltInTypeKind.AssociationSetEnd), 244(ComplexType)GetBuiltInType(BuiltInTypeKind.MetadataItem)); 246InitializeBuiltInTypes((ComplexType)GetBuiltInType(BuiltInTypeKind.FunctionParameter), 249(ComplexType)GetBuiltInType(BuiltInTypeKind.MetadataItem)); 251InitializeBuiltInTypes((ComplexType)GetBuiltInType(BuiltInTypeKind.EdmFunction), 254(ComplexType)GetBuiltInType(BuiltInTypeKind.EdmType)); 256InitializeBuiltInTypes((ComplexType)GetBuiltInType(BuiltInTypeKind.Documentation), 259(ComplexType)GetBuiltInType(BuiltInTypeKind.MetadataItem)); 490private static void InitializeBuiltInTypes(ComplexType builtInType, 493ComplexType baseType) 506ComplexType complexType = (ComplexType)GetBuiltInType(builtInTypeKind);
System\Data\Metadata\EdmValidator.cs (2)
174ValidateComplexType((ComplexType)item, errors, validatedItems); 259private void ValidateComplexType(ComplexType item, List<EdmItemError> errors, HashSet<MetadataItem> validatedItems)
System\Data\Metadata\Helper.cs (1)
143return ((ComplexType)edmType).Properties;
System\Data\Metadata\TypeHelpers.cs (3)
502return (IBaseList<EdmMember>)((ComplexType)edmType).Properties; 534return ((ComplexType)edmType).GetDeclaredOnlyMembers<EdmProperty>(); 557return ((ComplexType)edmType).Properties;
System\Data\Query\PlanCompiler\NominalTypeEliminator.cs (2)
508md.ComplexType complexType = null; 509if (TypeHelpers.TryGetEdmType<md.ComplexType>(currentType, out complexType))
System.Data.Entity.Design (19)
System\Data\Entity\Design\Common\MetadataItemSerializer.cs (2)
142WriteComplexTypeElement((ComplexType)type); 251private void WriteComplexTypeElement(ComplexType complexType)
System\Data\Entity\Design\Common\OneToOneMappingSerializer.cs (2)
324var modelComplexType = (ComplexType)modelCollectionType.TypeUsage.EdmType;
System\Data\Entity\Design\EntityModelSchemaGenerator.cs (3)
531var complexType = CreateModelComplexTypeForTvfResult(session, functionImportName, tvfReturnType); 567private ComplexType CreateModelComplexTypeForTvfResult(LoadMethodSessionState session, string functionImportName, RowType tvfReturnType) 585var complexType = new ComplexType(name, _namespaceName, DataSpace.CSpace);
System\Data\EntityModel\Emitters\CommentEmitter.cs (1)
66summaryComment = Strings.MissingComplexTypeDocumentation(((ComplexType)item).FullName);
System\Data\EntityModel\Emitters\ComplexTypeEmitter.cs (3)
30public ComplexTypeEmitter(ClientApiGenerator generator, ComplexType complexType) 67internal new ComplexType Item 71return base.Item as ComplexType;
System\Data\EntityModel\Emitters\NamespaceEmitter.cs (2)
34new Pair<Type,CreateEmitter>(typeof(ComplexType), delegate (ClientApiGenerator generator, GlobalItem element) { return new ComplexTypeEmitter(generator,(ComplexType)element); }),
System\Data\EntityModel\Emitters\PropertyEmitter.cs (4)
577types = new PropertyTypeReferences(TypeReference, (ComplexType)propertyType, Generator); 589types = new PropertyTypeReferences(TypeReference, (ComplexType)typeUsage.EdmType, GetCollectionKind(property.TypeUsage), Generator); 829public PropertyTypeReferences(TypeReference typeReference, ComplexType complexType, CollectionKind collectionKind, ClientApiGenerator generator) 855public PropertyTypeReferences(TypeReference typeReference, ComplexType complexType, ClientApiGenerator generator)
System\Data\EntityModel\Emitters\Utils.cs (2)
71typeReservedNames.Add(member.Name, typeof(ComplexType)); 82if (typeReservedNames[member.Name] == typeof(ComplexType))
System.Data.Services (2)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (2)
1818WriteComplexType(xmlWriter, (ComplexType)edmType, metadataManager); 1880private static void WriteComplexType(XmlWriter xmlWriter, ComplexType complexType, MetadataManager metadataManager)
System.Data.Services.Design (12)
System\Data\EntityModel\Emitters\AttributeEmitter.cs (2)
319ComplexType complexType = complexProperty.TypeUsage.EdmType as ComplexType;
System\Data\EntityModel\Emitters\CommentEmitter.cs (1)
59summaryComment = Strings.MissingComplexTypeDocumentation(((ComplexType)item).FullName);
System\Data\EntityModel\Emitters\ComplexTypeEmitter.cs (3)
26public ComplexTypeEmitter(ClientApiGenerator generator, ComplexType complexType) 59internal new ComplexType Item 63return base.Item as ComplexType;
System\Data\EntityModel\Emitters\NamespaceEmitter.cs (2)
27(new Pair<Type,CreateEmitter>(typeof(ComplexType), delegate (ClientApiGenerator generator2, GlobalItem element) { return new ComplexTypeEmitter(generator2,(ComplexType)element); })),
System\Data\EntityModel\Emitters\PropertyEmitter.cs (4)
502types = new PropertyTypeReferences(TypeReference, (ComplexType)propertyType, Generator); 514types = new PropertyTypeReferences(TypeReference, (ComplexType)typeUsage.EdmType, GetCollectionKind(property.TypeUsage), Generator); 752public PropertyTypeReferences(TypeReference typeReference, ComplexType complexType, CollectionKind collectionKind, ClientApiGenerator generator) 778public PropertyTypeReferences(TypeReference typeReference, ComplexType complexType, ClientApiGenerator generator)
System.Web.Entity (2)
System\Data\WebControls\EntityDataSourceUtil.cs (2)
213foreach (EdmType subType in GetTypeAndSubtypesOf<ComplexType>(type, itemCollection, includeAbstractTypes)) 997AddPropertyColumns(columns, ocWorkspace, prefix, ((ComplexType)propertyType).Properties, interestingMembers);