System\Data\Metadata\Edm\MetadataItem_Static.cs (168)
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();
40_builtInTypes[(int)BuiltInTypeKind.CollectionKind] = new EnumType();
41_builtInTypes[(int)BuiltInTypeKind.CollectionType] = new ComplexType();
42_builtInTypes[(int)BuiltInTypeKind.ComplexType] = new ComplexType();
43_builtInTypes[(int)BuiltInTypeKind.Documentation] = new ComplexType();
44_builtInTypes[(int)BuiltInTypeKind.OperationAction] = new EnumType();
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();
61_builtInTypes[(int)BuiltInTypeKind.ParameterMode] = new EnumType();
62_builtInTypes[(int)BuiltInTypeKind.PrimitiveType] = new ComplexType();
63_builtInTypes[(int)BuiltInTypeKind.PrimitiveTypeKind] = new EnumType();
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();
69_builtInTypes[(int)BuiltInTypeKind.RelationshipMultiplicity] = new EnumType();
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();
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));
264InitializeEnumType(BuiltInTypeKind.OperationAction,
268InitializeEnumType(BuiltInTypeKind.RelationshipMultiplicity,
272InitializeEnumType(BuiltInTypeKind.ParameterMode,
276InitializeEnumType(BuiltInTypeKind.CollectionKind,
280InitializeEnumType(BuiltInTypeKind.PrimitiveTypeKind,
298MetadataItem.GetBuiltInType(BuiltInTypeKind.EdmType),
306MetadataItem.GetBuiltInType(BuiltInTypeKind.EnumType),
317TypeUsage edmTypeUsage = TypeUsage.Create(MetadataItem.GetBuiltInType(BuiltInTypeKind.EdmType));
318TypeUsage typeUsageTypeUsage = TypeUsage.Create(MetadataItem.GetBuiltInType(BuiltInTypeKind.TypeUsage));
319TypeUsage complexTypeUsage = TypeUsage.Create(MetadataItem.GetBuiltInType(BuiltInTypeKind.ComplexType));
322AddBuiltInTypeProperties(BuiltInTypeKind.MetadataProperty,
327AddBuiltInTypeProperties(BuiltInTypeKind.MetadataItem,
328new EdmProperty[] { new EdmProperty(EdmConstants.ItemAttributes, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.MetadataProperty).GetCollectionType())),
329new EdmProperty(EdmConstants.Documentation, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.Documentation))) });
331AddBuiltInTypeProperties(BuiltInTypeKind.TypeUsage,
332new EdmProperty[] { new EdmProperty(EdmConstants.EdmType, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.EdmType))),
333new EdmProperty(EdmConstants.Facets, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.Facet)))});
336AddBuiltInTypeProperties(BuiltInTypeKind.EdmType,
343AddBuiltInTypeProperties(BuiltInTypeKind.EnumType,
346AddBuiltInTypeProperties(BuiltInTypeKind.CollectionType,
349AddBuiltInTypeProperties(BuiltInTypeKind.RefType,
350new EdmProperty[] { new EdmProperty(EdmConstants.EntityType, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.EntityType))) });
352AddBuiltInTypeProperties(BuiltInTypeKind.EdmMember,
354new EdmProperty(EdmConstants.TypeUsage, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.TypeUsage))) });
356AddBuiltInTypeProperties(BuiltInTypeKind.EdmProperty,
360AddBuiltInTypeProperties(BuiltInTypeKind.NavigationProperty,
364AddBuiltInTypeProperties(BuiltInTypeKind.RelationshipEndMember,
366new EdmProperty(EdmConstants.RelationshipMultiplicity, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.EnumType))) });
368AddBuiltInTypeProperties(BuiltInTypeKind.EnumMember,
371AddBuiltInTypeProperties(BuiltInTypeKind.ReferentialConstraint,
372new EdmProperty[] { new EdmProperty(EdmConstants.ToRole, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.RelationshipEndMember))),
373new EdmProperty(EdmConstants.FromRole, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.RelationshipEndMember))),
374new EdmProperty(EdmConstants.ToProperties, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.EdmProperty).GetCollectionType())),
375new EdmProperty(EdmConstants.FromProperties, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.EdmProperty).GetCollectionType())) } );
378AddBuiltInTypeProperties(BuiltInTypeKind.StructuralType,
379new EdmProperty[] { new EdmProperty(EdmConstants.Members, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.EdmMember))) });
381AddBuiltInTypeProperties(BuiltInTypeKind.EntityTypeBase,
382new EdmProperty[] { new EdmProperty(EdmConstants.KeyMembers, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.EdmMember))) });
384AddBuiltInTypeProperties(BuiltInTypeKind.Facet,
387new EdmProperty(EdmConstants.Value, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.EdmType))) });
389AddBuiltInTypeProperties(BuiltInTypeKind.EntityContainer,
391new EdmProperty(EdmConstants.EntitySets, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.EntitySet))) });
393AddBuiltInTypeProperties(BuiltInTypeKind.EntitySetBase,
395new EdmProperty(EdmConstants.EntityType, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.EntityType))),
400AddBuiltInTypeProperties(BuiltInTypeKind.AssociationSet,
401new EdmProperty[] { new EdmProperty(EdmConstants.AssociationSetEnds, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.AssociationSetEnd).GetCollectionType()))});
403AddBuiltInTypeProperties(BuiltInTypeKind.AssociationSetEnd,
405new EdmProperty(EdmConstants.EntitySetType, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.EntitySet))) } );
407AddBuiltInTypeProperties(BuiltInTypeKind.FunctionParameter,
409new EdmProperty(EdmConstants.Mode, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.EnumType))),
410new EdmProperty(EdmConstants.TypeUsage, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.TypeUsage))) });
412AddBuiltInTypeProperties(BuiltInTypeKind.EdmFunction,
415new EdmProperty(EdmConstants.ReturnParameter, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.FunctionParameter))),
416new EdmProperty(EdmConstants.Parameters, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.FunctionParameter).GetCollectionType())) });
418AddBuiltInTypeProperties(BuiltInTypeKind.Documentation,
469public static EdmType GetBuiltInType(BuiltInTypeKind builtInTypeKind)
504private static void AddBuiltInTypeProperties(BuiltInTypeKind builtInTypeKind, EdmProperty[] properties)
522private static void InitializeEnumType(BuiltInTypeKind builtInTypeKind,