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