5 types derived from EdmType
System.Data.Entity (5)
System\Data\Metadata\Edm\CollectionType.cs (1)
19public sealed class CollectionType : EdmType
System\Data\Metadata\Edm\EdmFunction.cs (1)
21public sealed class EdmFunction : EdmType
System\Data\Metadata\Edm\RefType.cs (1)
20public sealed class RefType : EdmType
System\Data\Metadata\Edm\SimpleType.cs (1)
19public abstract class SimpleType : EdmType
System\Data\Metadata\Edm\StructuralType.cs (1)
20public abstract class StructuralType : EdmType
645 references to EdmType
System.Data.Entity (548)
System\Data\Common\CommandTrees\DefaultExpressionVisitor.cs (2)
211protected virtual EdmType VisitType(EdmType type) { return type; }
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (4)
1788private static void CheckType(EdmType type) 1793private static void CheckType(EdmType type, string argumentName) 1997private static TypeUsage CreateCollectionResultType(EdmType type) 2014private static TypeUsage CreateResultType(EdmType resultType)
System\Data\Common\CommandTrees\Internal\ExpressionCopier.cs (4)
110protected override EdmType VisitType(EdmType type) 112EdmType retType = type; 177EdmType retEdmType = this.VisitType(type.EdmType);
System\Data\Common\CommandTrees\Internal\ExpressionDumper.cs (2)
198internal void Dump(EdmType type, string name) 209internal void Dump(EdmType type)
System\Data\Common\CommandTrees\Internal\ExpressionPrinter.cs (1)
358private static void AppendFullName(StringBuilder text, EdmType type)
System\Data\Common\CommandTrees\Internal\Validator.cs (2)
66protected override EdmType VisitType(EdmType type)
System\Data\Common\DataRecord.cs (1)
317EdmType edmMemberType = GetMember(ordinal).TypeUsage.EdmType;
System\Data\Common\DbProviderManifest.cs (1)
116public abstract System.Collections.ObjectModel.ReadOnlyCollection<FacetDescription> GetFacetDescriptions(EdmType edmType);
System\Data\Common\DbXmlEnabledProviderManifest.cs (1)
77public override System.Collections.ObjectModel.ReadOnlyCollection<FacetDescription> GetFacetDescriptions(EdmType type)
System\Data\Common\EntitySql\CqlErrorHelper.cs (2)
240private static string GetReadableTypeName( EdmType type ) 256private static string GetReadableTypeKind( EdmType type )
System\Data\Common\EntitySql\FunctionOverloadResolver.cs (1)
337EdmType t;
System\Data\Common\EntitySql\SemanticAnalyzer.cs (2)
1559var edmType = ConvertTypeName(relshipExpr.TypeName, sr).EdmType; 1676var edmType = ConvertTypeName(relshipExpr.TypeName, sr).EdmType;
System\Data\Common\EntityUtil.cs (2)
476static internal EntityCommandExecutionException CommandExecutionDataReaderMissingColumnForType(EdmMember member, EdmType currentType) { 1285internal static InvalidOperationException ExecuteFunctionTypeMismatch(Type typeArgument, EdmType expectedElementType) {
System\Data\Common\Internal\Materialization\ColumnMapKeyBuilder.cs (1)
89internal void Append(string prefix, EdmType type)
System\Data\Common\Internal\Materialization\Shaper.cs (2)
469if ((EdmType)entitySetBase.ElementType == associationType) 676EdmType expectedSourceType = ((RefType)sourceEnd.TypeUsage.EdmType).ElementType;
System\Data\Common\Internal\Materialization\Translator.cs (9)
175private readonly Dictionary<EdmType, ObjectTypeMapping> _objectTypeMappings = new Dictionary<EdmType, ObjectTypeMapping>(); 335private Type DetermineClrType(EdmType edmType) 366EdmType edmElementType = ((CollectionType)edmType).TypeUsage.EdmType; 456private ObjectTypeMapping LookupObjectMapping(EdmType edmType) 462EdmType resolvedType = ResolveSpanType(edmType); 481private EdmType ResolveSpanType(EdmType edmType) 483EdmType result = edmType;
System\Data\Common\Internal\Materialization\Util.cs (4)
17internal static ObjectTypeMapping GetObjectMapping(EdmType type, MetadataWorkspace workspace) 28EdmType ospaceType; 29EdmType cspaceType; 44ospaceType = workspace.GetItem<EdmType>(type.FullName, DataSpace.OSpace);
System\Data\Common\Utils\MetadataHelper.cs (30)
28internal static bool TryGetFunctionImportReturnType<T>(EdmFunction functionImport, int resultSetIndex, out T returnType) where T : EdmType 36|| typeof(EdmType).Equals(typeof(T)) && resultType is EdmType) 46private static bool TryGetWrappedReturnEdmTypeFromFunctionImport<T>(EdmFunction functionImport, int resultSetIndex, out T resultType) where T : EdmType 100internal static EdmType GetAndCheckFunctionImportReturnType<TElement>(EdmFunction functionImport, int resultSetIndex, MetadataWorkspace workspace) 102EdmType expectedEdmType; 103if (!MetadataHelper.TryGetFunctionImportReturnType<EdmType>(functionImport, resultSetIndex, out expectedEdmType)) 115internal static void CheckFunctionImportReturnType<TElement>(EdmType expectedEdmType, MetadataWorkspace workspace) 120EdmType spatialNormalizedEdmType = expectedEdmType; 126EdmType modelEdmType; 159internal static bool TryDetermineCSpaceModelType<T>(MetadataWorkspace workspace, out EdmType modelEdmType) 164internal static bool TryDetermineCSpaceModelType(Type type, MetadataWorkspace workspace, out EdmType modelEdmType) 171EdmType objectEdmType; 172if (objectItemCollection.TryGetItem<EdmType>(nonNullabelType.FullName, out objectEdmType)) 210internal static bool HasDiscreteDomain(EdmType edmType) 350internal static IEnumerable<EdmType> GetTypeAndSubtypesOf(EdmType type, MetadataWorkspace workspace, bool includeAbstractTypes) 355internal static IEnumerable<EdmType> GetTypeAndSubtypesOf(EdmType type, ItemCollection itemCollection, bool includeAbstractTypes) 369foreach (EdmType subType in GetTypeAndSubtypesOf<EntityType>(type, itemCollection, includeAbstractTypes)) 375foreach (EdmType subType in GetTypeAndSubtypesOf<ComplexType>(type, itemCollection, includeAbstractTypes)) 381private static IEnumerable<EdmType> GetTypeAndSubtypesOf<T_EdmType>(EdmType type, ItemCollection itemCollection, bool includeAbstractTypes) 382where T_EdmType : EdmType 406internal static IEnumerable<EdmType> GetTypeAndParentTypesOf(EdmType type, ItemCollection itemCollection, bool includeAbstractTypes) 414EdmType specificType = type; 671internal static bool IsSuperTypeOf(EdmType superType, EdmType subType) 673EdmType currentType = subType;
System\Data\EntityClient\EntityCommandDefinition.cs (1)
221private void ValidateEdmResultType(EdmType resultType, EdmFunction functionImport)
System\Data\EntityClient\EntityParameter.cs (3)
25private EdmType _edmType; 198public EdmType EdmType 494private static DbType GetDbTypeFromEdm(EdmType edmType)
System\Data\EntityKey.cs (1)
1099EdmType keyMemberEdmType = keyMember.TypeUsage.EdmType;
System\Data\EntityModel\SchemaObjectModel\BooleanFacetDescriptionElement.cs (1)
25public override EdmType FacetType
System\Data\EntityModel\SchemaObjectModel\ByteFacetDescriptionElement.cs (1)
25public override EdmType FacetType
System\Data\EntityModel\SchemaObjectModel\CollectionTypeElement.cs (2)
204EdmType edmType = (EdmType)Converter.LoadSchemaElement(_type, _type.Schema.ProviderManifest, convertedItemCache, newGlobalItems);
System\Data\EntityModel\SchemaObjectModel\FacetDescriptionElement.cs (1)
126public abstract EdmType FacetType{ get; }
System\Data\EntityModel\SchemaObjectModel\FacetEnabledSchemaElement.cs (1)
120internal void ValidateAndSetTypeUsage(EdmType edmType)
System\Data\EntityModel\SchemaObjectModel\IntegerFacetDescriptionElement.cs (1)
25public override EdmType FacetType
System\Data\EntityModel\SchemaObjectModel\ModelFunction.cs (1)
70internal void ValidateAndSetTypeUsage(EdmType edmType)
System\Data\EntityModel\SchemaObjectModel\ReferenceTypeElement.cs (2)
80EdmType edmType = (EdmType)Converter.LoadSchemaElement(_type, _type.Schema.ProviderManifest, convertedItemCache, newGlobalItems);
System\Data\EntityModel\SchemaObjectModel\RowTypePropertyElement.cs (2)
210EdmType edmType = (EdmType)Converter.LoadSchemaElement(_type, _type.Schema.ProviderManifest, convertedItemCache, newGlobalItems);
System\Data\EntityModel\SchemaObjectModel\SridFacetDescriptionElement.cs (1)
25public override EdmType FacetType
System\Data\EntityModel\SchemaObjectModel\StructuredProperty.cs (2)
155EdmType propertyType = (EdmType)Converter.LoadSchemaElement(Type, Type.Schema.ProviderManifest, convertedItemCache, newGlobalItems);
System\Data\EntityModel\SchemaObjectModel\TypeRefElement.cs (2)
74EdmType edmType = (EdmType)Converter.LoadSchemaElement(_type, _type.Schema.ProviderManifest, convertedItemCache, newGlobalItems);
System\Data\EntityModel\SchemaObjectModel\TypeUsageBuilder.cs (8)
112private bool TryGetFacets(EdmType edmType, bool complainOnMissingFacet, out Dictionary<string, Facet> calculatedFacets) 184internal void ValidateAndSetTypeUsage(EdmType edmType, bool complainOnMissingFacet) 365private void ValidateAndSetBinaryFacets(EdmType type, Dictionary<string, Facet> facets) 371private void ValidateAndSetDecimalFacets(EdmType type, Dictionary<string, Facet> facets) 428private void ValidatePrecisionFacetsForDateTimeFamily(EdmType type, Dictionary<string, Facet> facets) 455private void ValidateAndSetStringFacets(EdmType type, Dictionary<string, Facet> facets) 460private void ValidateLengthFacets(EdmType type, Dictionary<string, Facet> facets) 491private void ValidateSpatialFacets(EdmType type, Dictionary<string, Facet> facets)
System\Data\Mapping\BaseMetadataMappingVisitor.cs (3)
211protected virtual void Visit(EdmType edmType) 340foreach (var type in storageTypeMapping.IsOfTypes) 352foreach (var type in storageTypeMapping.Types)
System\Data\Mapping\DefaultObjectMappingItemCollection.cs (36)
81EdmType cdmType = null; 82EdmType clrType = null; 88if (!m_edmCollection.TryGetItem<EdmType>(identity, true, out cdmType)) 105m_edmCollection.TryGetItem<EdmType>(identity, ignoreCase, out cdmType)) 116if (!m_objectCollection.TryGetItem<EdmType>(identity, true, out clrType)) 133m_objectCollection.TryGetItem<EdmType>(identity, ignoreCase, out clrType)) 137m_edmCollection.TryGetItem<EdmType>(cspaceTypeName, out cdmType); 208EdmType edmType = item as EdmType; 235private Map GetDefaultMapping(EdmType cdmType, EdmType clrType) { 240private Map GetOCMapForTransientType(EdmType edmType, DataSpace typeSpace) 243EdmType clrType = null; 244EdmType cdmType = null; 293private EdmType ConvertCSpaceToOSpaceType(EdmType cdmType) 295EdmType clrType = null; 299EdmType elemType = ConvertCSpaceToOSpaceType(((CollectionType)cdmType).TypeUsage.EdmType); 307EdmType clrPropertyType = ConvertCSpaceToOSpaceType(column.TypeUsage.EdmType); 332private EdmType ConvertOSpaceToCSpaceType(EdmType clrType) 334EdmType cdmType = null; 338EdmType elemType = ConvertOSpaceToCSpaceType(((CollectionType)clrType).TypeUsage.EdmType); 346EdmType cdmPropertyType = ConvertOSpaceToCSpaceType(column.TypeUsage.EdmType); 429internal static ObjectTypeMapping LoadObjectMapping(EdmType cdmType, EdmType objectType, DefaultObjectMappingItemCollection ocItemCollection) 446private static ObjectTypeMapping LoadObjectMapping(EdmType edmType, EdmType objectType, DefaultObjectMappingItemCollection ocItemCollection, 549EdmType edmMemberType; 550EdmType objectMemberType; 606private static void LoadEntityTypeOrComplexTypeMapping(ObjectTypeMapping objectMapping, EdmType edmType, EdmType objectType, 748private static void LoadAssociationTypeMapping(ObjectTypeMapping objectMapping, EdmType edmType, EdmType objectType, 807private static ObjectTypeMapping LoadTypeMapping(EdmType edmType, EdmType objectType,
System\Data\Mapping\FunctionImportMapping.ReturnTypeRenameMapping.cs (3)
196/// <see cref="GetRename(EdmType, out IXmlLineInfo)"/> for more info. 198internal string GetRename(EdmType type) 212internal string GetRename(EdmType type, out IXmlLineInfo lineInfo)
System\Data\Mapping\FunctionImportMappingComposable.cs (2)
45EdmType resultType; 48MetadataHelper.TryGetFunctionImportReturnType<EdmType>(functionImport, 0, out resultType) && TypeSemantics.IsScalarType(resultType),
System\Data\Mapping\MetadataMappingHasherVisitor.cs (2)
264foreach (var entityType in MetadataHelper.GetTypeAndSubtypesOf(entitySet.ElementType, this.m_EdmItemCollection, false).Where(type => type != entitySet.ElementType)) 516protected override void Visit(EdmType edmType)
System\Data\Mapping\ObjectTypeMapping.cs (6)
27internal ObjectTypeMapping(EdmType clrType, EdmType cdmType) { 46private readonly EdmType m_clrType; //type on the Clr side that is being mapped 47private readonly EdmType m_cdmType; //type on the Cdm side that is being mapped 68internal EdmType ClrType { 88internal EdmType EdmType {
System\Data\Mapping\StorageAssociationTypeMapping.cs (4)
86internal override ReadOnlyCollection<EdmType> Types { 88return new ReadOnlyCollection<EdmType>(new AssociationType[] { m_relation }); 98internal override ReadOnlyCollection<EdmType> IsOfTypes { 100return new List<EdmType>().AsReadOnly();
System\Data\Mapping\StorageConditionPropertyMapping.cs (1)
145EdmType memberType = (ColumnProperty != null) ? ColumnProperty.TypeUsage.EdmType : null;
System\Data\Mapping\StorageEntityTypeMapping.cs (12)
71private Dictionary<string, EdmType> m_entityTypes = new Dictionary<string, EdmType>(StringComparer.Ordinal); 75private Dictionary<string, EdmType> m_isOfEntityTypes = new Dictionary<string, EdmType>(StringComparer.Ordinal); 82internal override ReadOnlyCollection<EdmType> Types { 84return new List<EdmType>(m_entityTypes.Values).AsReadOnly(); 92internal override ReadOnlyCollection<EdmType> IsOfTypes { 94return new List<EdmType>(m_isOfEntityTypes.Values).AsReadOnly(); 103internal void AddType(EdmType type) { 110internal void AddIsOfType(EdmType type) { 143foreach (EdmType type in m_entityTypes.Values) { 148foreach (EdmType type in m_isOfEntityTypes.Values) {
System\Data\Mapping\StorageMappingItemLoader.cs (19)
893Set<EdmType> functionMappedTypes = new Set<EdmType>(); 900Set<EdmType> unmappedTypes = new Set<EdmType>(MetadataHelper.GetTypeAndSubtypesOf(setMapping.Set.ElementType, EdmItemCollection, false /*includeAbstractTypes*/)); 904Set<EdmType> abstractTypes = new Set<EdmType>(); 991IEnumerable<EdmType> typeAndSubTypes = MetadataHelper.GetTypeAndSubtypesOf(entityType, EdmItemCollection, false /*includeAbstractTypes*/); 1606EdmType resultType; 1607if (MetadataHelper.TryGetFunctionImportReturnType<EdmType>(functionImport, 0, out resultType)) 2261EdmType scalarResultType, 2672EdmType containerType = null; 2833private StorageScalarPropertyMapping LoadScalarPropertyMapping(XPathNavigator nav, EdmType containerType, ReadOnlyMetadataCollection<EdmProperty> tableProperties) 2905private StorageComplexPropertyMapping LoadComplexPropertyMapping(XPathNavigator nav, EdmType containerType, ReadOnlyMetadataCollection<EdmProperty> tableProperties) 2915EdmType memberType = null; 2961this.EdmItemCollection.TryGetItem<EdmType>(memberTypeName, out memberType); 3005private StorageComplexTypeMapping LoadComplexTypeMapping(XPathNavigator nav, EdmType type, ReadOnlyMetadataCollection<EdmProperty> tableType) 3077EdmType containerType = typeMapping.GetOwnerType(StorageMappingItemLoader.GetAttributeValue(nav.Clone(), StorageMslConstructs.ComplexPropertyNameAttribute)); 3180private StorageConditionPropertyMapping LoadConditionPropertyMapping(XPathNavigator nav, EdmType containerType, ReadOnlyMetadataCollection<EdmProperty> tableProperties) 3238EdmType edmType = conditionMember.TypeUsage.EdmType;
System\Data\Mapping\StorageTypeMapping.cs (2)
97internal abstract ReadOnlyCollection<EdmType> Types { get;} 103internal abstract ReadOnlyCollection<EdmType> IsOfTypes { get;}
System\Data\Mapping\ViewGeneration\CellCreator.cs (10)
284Set<EdmType> allTypes = new Set<EdmType>(); 292foreach (EdmType type in entityTypeMap.IsOfTypes) 294IEnumerable<EdmType> typeAndSubTypes = MetadataHelper.GetTypeAndSubtypesOf(type, m_containerMapping.StorageMappingItemCollection.EdmItemCollection, false /*includeAbstractTypes*/); 319Set<EdmType> allTypes, List<Cell> cells) 410Set<EdmType> allTypes = new Set<EdmType>(); 413IEnumerable<EdmType> exactTypes = Helpers.AsSuperTypeList<ComplexType, EdmType>(complexTypeMap.Types); 415foreach (EdmType type in complexTypeMap.IsOfTypes)
System\Data\Mapping\ViewGeneration\CqlGeneration\CqlWriter.cs (1)
37internal static void AppendEscapedTypeName(StringBuilder builder, EdmType type)
System\Data\Mapping\ViewGeneration\CqlGenerator.cs (2)
369EdmType edmType = caseMemberPath.EdmType; 372foreach (EdmType instantiatedType in statement.InstantiatedTypes)
System\Data\Mapping\ViewGeneration\GeneratedView.cs (4)
36EdmType type, 69EdmType type, 139EdmType type, 169private readonly EdmType m_type;
System\Data\Mapping\ViewGeneration\QueryRewriting\FragmentQueryKB.cs (9)
63HashSet<EdmType> derivedTypes = new HashSet<EdmType>(); 154private void CreateVariableConstraintsRecursion(EdmType edmType, MemberPath currentPath, MemberDomainMap domainMap, EdmItemCollection edmItemCollection) 157HashSet<EdmType> possibleTypes = new HashSet<EdmType>(); 160foreach (EdmType possibleType in possibleTypes) 164HashSet<EdmType> derivedTypes = new HashSet<EdmType>(); 209private static BoolExpression CreateIsOfTypeCondition(MemberPath currentPath, IEnumerable<EdmType> derivedTypes, MemberDomainMap domainMap)
System\Data\Mapping\ViewGeneration\QueryRewriting\QueryRewriter.cs (16)
58EdmType _generatedType; 77internal QueryRewriter(EdmType generatedType, ViewgenContext context, ViewGenMode typesGenerationMode) 211IEnumerable<EdmType> types; 215HashSet<EdmType> type = new HashSet<EdmType>(); 299internal FragmentQuery GetDomainQuery(IEnumerable<FragmentQuery> fragmentQueries, EdmType generatedType) 312IEnumerable<EdmType> derivedTypes; 316HashSet<EdmType> type = new HashSet<EdmType>(); 435EdmType edmType = typeConstant.EdmType; 1147private static IEnumerable<Constant> GetTypeConstants(IEnumerable<EdmType> types) 1149foreach (EdmType type in types) 1155private static IEnumerable<MemberPath> GetNonConditionalScalarMembers(EdmType edmType, MemberPath currentPath, MemberDomainMap domainMap) 1160private static IEnumerable<MemberPath> GetConditionalComplexMembers(EdmType edmType, MemberPath currentPath, MemberDomainMap domainMap) 1165private static IEnumerable<MemberPath> GetNonConditionalComplexMembers(EdmType edmType, MemberPath currentPath, MemberDomainMap domainMap) 1170private static IEnumerable<MemberPath> GetConditionalScalarMembers(EdmType edmType, MemberPath currentPath, MemberDomainMap domainMap)
System\Data\Mapping\ViewGeneration\Structures\CaseStatement.cs (5)
134internal IEnumerable<EdmType> InstantiatedTypes 140EdmType type; 146EdmType elseType; 154private bool TryGetInstantiatedType(ProjectedSlot slot, out EdmType type) 363EdmType fromType = typeConstant.EdmType;
System\Data\Mapping\ViewGeneration\Structures\Constant.cs (2)
163EdmType constType = Helper.GetModelTypeUsage(outputMember.LeafEdmMember).EdmType; 174EdmType constType = Helper.GetModelTypeUsage(outputMember.LeafEdmMember).EdmType;
System\Data\Mapping\ViewGeneration\Structures\Domain.cs (2)
130private static CellConstantSet DeriveDomainFromType(EdmType type, EdmItemCollection edmItemCollection, bool leaveDomainUnbounded) 165foreach (EdmType derivedType in MetadataHelper.GetTypeAndSubtypesOf(type, edmItemCollection, false /*includeAbstractTypes*/))
System\Data\Mapping\ViewGeneration\Structures\MemberPath.cs (3)
216internal EdmType EdmType 471EdmType prevType = m_extent.ElementType; 563internal IEnumerable<MemberPath> GetMembers(EdmType edmType, bool? isScalar, bool? isConditional, bool? isPartOfKey, MemberDomainMap domainMap)
System\Data\Mapping\ViewGeneration\Structures\MemberProjectionIndex.cs (2)
189EdmType memberType = member.EdmType; 210foreach (EdmType possibleType in MetadataHelper.GetTypeAndSubtypesOf(memberType, edmItemCollection, false /*includeAbstractTypes*/))
System\Data\Mapping\ViewGeneration\Structures\MemberRestriction.cs (7)
315Set<EdmType> allTypes = new Set<EdmType>(); 318EdmType memberType = RestrictedMemberSlot.MemberPath.EdmType; 319foreach (EdmType type in MetadataHelper.GetTypeAndSubtypesOf(memberType, workspace, false)) 325Set<EdmType> oneOfTypes = new Set<EdmType>(); 335foreach (EdmType type in allTypes)
System\Data\Mapping\ViewGeneration\Structures\ScalarConstant.cs (1)
77EdmType modelType = modelTypeUsage.EdmType;
System\Data\Mapping\ViewGeneration\Structures\TypeConstant.cs (3)
33internal TypeConstant(EdmType type) 44private readonly EdmType m_edmType; 51internal EdmType EdmType
System\Data\Mapping\ViewGeneration\Structures\TypeRestriction.cs (3)
34internal TypeRestriction(MemberPath member, IEnumerable<EdmType> values) 214private static IEnumerable<Constant> CreateTypeConstants(IEnumerable<EdmType> types) 216foreach (EdmType type in types)
System\Data\Mapping\ViewGeneration\Validation\ErrorPatternMatcher.cs (7)
89Set<EdmType> unmapepdTypesInExtent = new Set<EdmType>(MetadataHelper.GetTypeAndSubtypesOf(m_viewgenContext.Extent.ElementType, m_viewgenContext.EdmItemCollection, false /*isAbstract*/)); 116Strings.ViewGen_Missing_Type_Mapping(BuildCommaSeparatedErrorString<EdmType>(unmapepdTypesInExtent)), m_viewgenContext.AllWrappersForExtent, "")); 479List<EdmType> edmTypesForFirstCellWrapper; 481List<EdmType> edmTypesForSecondCellWrapper; 600private void GetTypesAndConditionForWrapper(LeftCellWrapper wrapper, out bool hasCondition, out List<EdmType> edmTypes) 603edmTypes = new List<EdmType>();
System\Data\Mapping\ViewGeneration\ViewGenerator.cs (2)
357foreach (EdmType type in MetadataHelper.GetTypeAndSubtypesOf(extent.ElementType, m_entityContainerMapping.StorageMappingItemCollection.EdmItemCollection, false /*includeAbstractTypes*/)) 403private QueryRewriter GenerateViewsForExtentAndType(EdmType generatedType, ViewgenContext context, CqlIdentifiers identifiers, ViewSet views, ViewGenMode mode)
System\Data\Mapping\ViewValidator.cs (1)
143EdmType type = expression.ResultType.EdmType;
System\Data\Metadata\ClrPerspective.cs (2)
155EdmType edmItem = item as EdmType;
System\Data\Metadata\Converter.cs (13)
352entityType.BaseType = (EdmType)(LoadSchemaElement(element.BaseType, 421complexType.BaseType = (EdmType)(LoadSchemaElement(element.BaseType, 727EdmType propertyType; 737propertyType = (EdmType)LoadSchemaElement(somProperty.Type, providerManifest, convertedItemCache, newGlobalItems); 795EdmType edmType = toEndEntityType; 1134EdmType edmType; 1170edmType = (EdmType)LoadSchemaElement(type, 1401private readonly Dictionary<EdmType, TypeUsage> _nullFacetsTypeUsage; 1402private readonly Dictionary<EdmType, TypeUsage> _nullFacetsCollectionTypeUsage; 1409this._nullFacetsTypeUsage = new Dictionary<EdmType, TypeUsage>(); 1410this._nullFacetsCollectionTypeUsage = new Dictionary<EdmType, TypeUsage>(); 1419internal TypeUsage GetTypeUsageWithNullFacets(EdmType edmType) 1441internal TypeUsage GetCollectionTypeUsageWithNullFacets(EdmType edmType)
System\Data\Metadata\Edm\CollectionType.cs (1)
27internal CollectionType(EdmType elementType)
System\Data\Metadata\Edm\EdmType.cs (10)
50EdmType.Initialize(this, 64private EdmType _baseType; 159public EdmType BaseType 171EdmType type = value; 255Initialize(EdmType edmType, 260EdmType baseType) 300internal virtual bool IsSubtypeOf(EdmType otherType) 314internal virtual bool IsBaseTypeOf(EdmType otherType) 326internal virtual bool IsAssignableFrom(EdmType otherType) 340EdmType baseType = BaseType;
System\Data\Metadata\Edm\Facet.cs (1)
149public EdmType FacetType
System\Data\Metadata\Edm\FacetDescription.cs (6)
29EdmType facetType, 69EdmType facetType, 98private readonly EdmType _facetType; 132public EdmType FacetType 275internal static bool IsNumericType(EdmType facetType) 290private static void UpdateMinMaxValueForConstant(string facetName, EdmType facetType, ref int? minValue, ref int? maxValue, object defaultValue)
System\Data\Metadata\Edm\ItemCollection.cs (8)
249public EdmType GetType(string name, string namespaceName) 262public bool TryGetType(string name, string namespaceName, out EdmType type) 275public EdmType GetType(string name, string namespaceName, bool ignoreCase) 279return GetItem<EdmType>(EdmType.CreateEdmTypeIdentity(namespaceName, name), ignoreCase); 291public bool TryGetType(string name, string namespaceName, bool ignoreCase, out EdmType type) 296TryGetValue(EdmType.CreateEdmTypeIdentity(namespaceName, name), ignoreCase, out item); 297type = item as EdmType;
System\Data\Metadata\Edm\MemberCollection.cs (2)
171EdmType baseType = _declaringType.BaseType; 251EdmType baseType = _declaringType.BaseType;
System\Data\Metadata\Edm\MetadataItem_Static.cs (5)
431private static EdmType[] _builtInTypes = new EdmType[EdmConstants.NumBuiltInTypes]; 469public static EdmType GetBuiltInType(BuiltInTypeKind builtInTypeKind) 496EdmType.Initialize(builtInType, name, EdmConstants.EdmNamespace, DataSpace.CSpace, isAbstract, baseType); 529EdmType.Initialize(enumType,
System\Data\Metadata\Edm\MetadataProperty.cs (1)
48internal MetadataProperty(string name, EdmType edmType, bool isCollectionType, object value)
System\Data\Metadata\Edm\MetadataPropertyAttribute.cs (3)
58private MetadataPropertyAttribute(EdmType type, bool isCollectionType) 65private readonly EdmType _type; 71internal EdmType Type { get { return _type; } }
System\Data\Metadata\Edm\PrimitiveType.cs (1)
238public EdmType GetEdmPrimitiveType()
System\Data\Metadata\Edm\Provider\ClrProviderManifest.cs (1)
183public override System.Collections.ObjectModel.ReadOnlyCollection<FacetDescription> GetFacetDescriptions(EdmType type)
System\Data\Metadata\Edm\Provider\EdmProviderManifest.cs (2)
88public override System.Collections.ObjectModel.ReadOnlyCollection<FacetDescription> GetFacetDescriptions(EdmType type) 215EdmType.Initialize(primitiveType, name,
System\Data\Metadata\Edm\TypeUsage.cs (11)
31private TypeUsage(EdmType edmType) 49private TypeUsage(EdmType edmType, IEnumerable<Facet> facets) 64internal static TypeUsage Create(EdmType edmType) 74internal static TypeUsage Create(EdmType edmType, FacetValues values) 86internal static TypeUsage Create(EdmType edmType, IEnumerable<Facet> facets) 103public static TypeUsage CreateDefaultTypeUsage(EdmType edmType) 105EntityUtil.CheckArgumentNull<EdmType>(edmType, "edmType"); 326private readonly EdmType _edmType; 365public EdmType EdmType 402EdmType edmType = this.EdmType; 517private static IEnumerable<Facet> GetDefaultFacetDescriptionsAndOverrideFacetValues(EdmType type, FacetValues values)
System\Data\Metadata\EdmValidator.cs (2)
95where T : EdmType // O-Space only supports EdmType 270private void ValidateEdmType(EdmType item, List<EdmItemError> errors, HashSet<MetadataItem> validatedItems)
System\Data\Metadata\Helper.cs (20)
105internal static bool IsAssignableFrom(EdmType firstType, EdmType secondType) 119internal static bool IsSubtypeOf(EdmType firstType, EdmType secondType) 128for (EdmType t = firstType.BaseType; t != null; t = t.BaseType) 136internal static IList GetAllStructuralMembers(EdmType edmType) 231internal static bool IsStructuralType(EdmType type) 241internal static bool IsEntityType(EdmType type) 246internal static bool IsComplexType(EdmType type) 251internal static bool IsPrimitiveType(EdmType type) 266internal static bool IsAssociationType(EdmType type) 271internal static bool IsRelationshipType(EdmType type) 296internal static bool IsEntityTypeBase(EdmType edmType) 302internal static bool IsTransientType(EdmType edmType) 342internal static bool IsEnumType(EdmType edmType) 358internal static bool IsScalarType(EdmType edmType) 368internal static bool IsSpatialType(EdmType type, out bool isGeographic) 546internal static PrimitiveType AsPrimitive(EdmType type) 561internal static PrimitiveType GetUnderlyingEdmTypeForEnumType(EdmType type) 569internal static PrimitiveType GetSpatialNormalizedPrimitiveType(EdmType type)
System\Data\Metadata\MetadataWorkspace.cs (10)
456EdmType ospaceType; 564public EdmType GetType(string name, string namespaceName, DataSpace dataSpace) 579public bool TryGetType(string name, string namespaceName, DataSpace dataSpace, out EdmType type) 601public EdmType GetType(string name, string namespaceName, bool ignoreCase, DataSpace dataSpace) 618DataSpace dataSpace, out EdmType type) 999where T : EdmType 1025where T : EdmType 1116where T : EdmType 1141where T : EdmType 1263EdmType clrType = null;
System\Data\Metadata\ModelPerspective.cs (2)
44EdmType edmType = null; 45if (this.MetadataWorkspace.TryGetItem<EdmType>(fullName, ignoreCase, this.TargetDataspace, out edmType))
System\Data\Metadata\ObjectItemCollection.cs (20)
56private Dictionary<string, EdmType> _ocMapping = new Dictionary<string, EdmType>(); 238internal static Dictionary<string, EdmType> LoadTypesExpensiveWay(Assembly assembly) 240Dictionary<string, EdmType> typesInLoading = null; 265Dictionary<string, EdmType> typesInLoading = LoadTypesExpensiveWay(entityClrType.Assembly); 268EdmType edmType; 285Dictionary<string, EdmType> typesInLoading = LoadTypesExpensiveWay(assembly); 289foreach (EdmType edmType in typesInLoading.Values) 334Dictionary<string, EdmType> typesInLoading; 366foreach (EdmType edmType in typesInLoading.Values) 450return ObjectItemCollection.GetClrType((EdmType)objectSpaceType); 463return ObjectItemCollection.TryGetClrType((EdmType)objectSpaceType, out clrType); 474return ObjectItemCollection.GetClrType((EdmType)objectSpaceType); 487return ObjectItemCollection.TryGetClrType((EdmType)objectSpaceType, out clrType); 496private static Type GetClrType(EdmType objectSpaceType) 518private static bool TryGetClrType(EdmType objectSpaceType, out Type clrType) 573internal bool TryGetOSpaceType(EdmType cspaceType, out EdmType edmType) 583return TryGetItem<EdmType>(cspaceType.Identity, out edmType); 593internal static string TryGetMappingCSpaceTypeIdentity(EdmType edmType)
System\Data\Metadata\ObjectLayer\AssemblyCache.cs (3)
33KnownAssembliesSet knownAssemblies, out Dictionary<string, EdmType> typesInLoading, out List<EdmItemError> errors) 40KnownAssembliesSet knownAssemblies, EdmItemCollection edmItemCollection, Action<String> logLoadMessage, ref object loaderCookie, out Dictionary<string, EdmType> typesInLoading, out List<EdmItemError> errors) 82foreach (EdmType edmType in loadingData.TypesInLoading.Values)
System\Data\Metadata\ObjectLayer\AssemblyCacheEntry.cs (4)
17internal abstract IList<EdmType> TypesInAssembly { get; } 20internal bool TryGetEdmType(string typeName, out EdmType edmType) 23foreach (EdmType loadedEdmType in this.TypesInAssembly) 36EdmType edmType = null;
System\Data\Metadata\ObjectLayer\ImmutableAssemblyCacheEntry.cs (3)
18private readonly System.Collections.ObjectModel.ReadOnlyCollection<EdmType> _typesInAssembly; 23_typesInAssembly = new List<EdmType>(mutableEntry.TypesInAssembly).AsReadOnly(); 27internal override IList<EdmType> TypesInAssembly
System\Data\Metadata\ObjectLayer\LoadMessageLogger.cs (6)
20private Dictionary<EdmType, StringBuilder> _messages = new Dictionary<EdmType, StringBuilder>(); 27internal void LogLoadMessage(string message, EdmType relatedType) 37internal string CreateErrorMessageWithTypeSpecificLoadLogs(string errorMessage, EdmType relatedType) 43private string GetTypeRelatedLogMessage(EdmType relatedType) 60private void LogMessagesWithTypeInfo(string message, EdmType relatedType)
System\Data\Metadata\ObjectLayer\MutableAssemblyCacheEntry.cs (3)
18private readonly List<EdmType> _typesInAssembly = new List<EdmType>(); 22internal override IList<EdmType> TypesInAssembly
System\Data\Metadata\ObjectLayer\ObjectItemAttributeAssemblyLoader.cs (11)
86private bool TryGetLoadedType(Type clrType, out EdmType edmType) 110EdmType elementType; 137private bool TryGetCachedEdmType(Type clrType, out EdmType edmType) 280EdmType edmType = null; 368private EdmType ResolveBaseType(Type type) 370EdmType edmType; 435EdmType edmType; 535EdmType propertyType; 551EdmType type; 662EdmType propertyType; 696EdmType propertyType;
System\Data\Metadata\ObjectLayer\ObjectItemCachedAssemblyLoader.cs (1)
32foreach (EdmType type in CacheEntry.TypesInAssembly)
System\Data\Metadata\ObjectLayer\ObjectItemConventionAssemblyLoader.cs (21)
39EdmType cspaceType; 48EdmType ospaceType; 63EdmType previousOSpaceType = SessionData.CspaceToOspace[cspaceType]; 86private bool TryGetCSpaceTypeMatch(Type type, out EdmType cspaceType) 89KeyValuePair<EdmType, int> pair; 116private bool TryCreateType(Type type, EdmType cspaceType, out EdmType newOSpaceType) 151private bool TryCreateStructuralType(Type type, StructuralType cspaceType, out EdmType newOSpaceType) 216private bool TryCreateEnumType(Type enumType, EnumType cspaceEnumType, out EdmType newOSpaceType) 335private EdmType ResolveBaseType(StructuralType baseCSpaceType, Type type) 337EdmType ospaceType; 487EdmType propertyType; 508EdmType ospaceRelationship; 514EdmType targetType = null; 517EdmType findType; 528EdmType findType; 640EdmType propertyType; 689EdmType[] ospaceEndTypes = new EdmType[2]; 734internal static bool TypesMatchByConvention(Type type, EdmType cspaceType) 739private void AddScalarMember(Type type, PropertyInfo clrProperty, StructuralType ospaceType, EdmProperty cspaceProperty, EdmType propertyType)
System\Data\Metadata\ObjectLayer\ObjectItemLoadingSessionData.cs (19)
21private readonly Dictionary<string, EdmType> _typesInLoading; 45private Dictionary<string, KeyValuePair<EdmType, int>> _conventionCSpaceTypeNames; 46private Dictionary<EdmType, EdmType> _cspaceToOspace; 48internal Dictionary<string, EdmType> TypesInLoading { get { return _typesInLoading; } } 54internal Dictionary<EdmType, EdmType> CspaceToOspace { get { return _cspaceToOspace; } } 71internal Dictionary<string, KeyValuePair<EdmType, int>> ConventionCSpaceTypeNames 77_conventionCSpaceTypeNames = new Dictionary<string, KeyValuePair<EdmType, int>>(); 80foreach (var edmType in _edmItemCollection.GetItems<EdmType>()) 85KeyValuePair<EdmType, int> pair; 88_conventionCSpaceTypeNames[edmType.Name] = new KeyValuePair<EdmType, int>(pair.Key, pair.Value + 1); 92pair = new KeyValuePair<EdmType, int>(edmType, 1); 134_typesInLoading = new Dictionary<string, EdmType>(StringComparer.Ordinal); 142_cspaceToOspace = new Dictionary<EdmType, EdmType>(); 149foreach (EdmType type in entry.CacheEntry.TypesInAssembly.OfType<EdmType>())
System\Data\Metadata\TargetPerspective.cs (2)
51EdmType edmType = null; 52if (this.MetadataWorkspace.TryGetItem<EdmType>(fullName, ignoreCase, this.TargetDataspace, out edmType))
System\Data\Metadata\TypeHelpers.cs (7)
36EdmType type = typeUsage.EdmType; 494internal static IBaseList<EdmMember> GetAllStructuralMembers(EdmType edmType) 527internal static IEnumerable GetDeclaredStructuralMembers(EdmType edmType) 552internal static ReadOnlyMetadataCollection<EdmProperty> GetProperties(EdmType edmType) 635where TEdmType : EdmType 641where TEdmType : EdmType 670internal static string GetFullName(EdmType type)
System\Data\Metadata\TypeSemantics.cs (24)
90internal static bool IsStructurallyEqualOrPromotableTo(EdmType fromType, EdmType toType) 125internal static bool IsSubTypeOf(EdmType subEdmType, EdmType superEdmType) 255EdmType commonEdmType; 315internal static bool IsValidPolymorphicCast(EdmType fromEdmType, EdmType toEdmType) 399internal static bool IsScalarType(EdmType type) 797private static bool TryGetCommonType(EdmType edmType1, EdmType edmType2, out EdmType commonEdmType) 880private static bool TryGetCommonType(PrimitiveType primitiveType1, PrimitiveType primitiveType2, out EdmType commonType) 906private static bool TryGetCommonType(CollectionType collectionType1, CollectionType collectionType2, out EdmType commonType) 919private static bool TryGetCommonType(RefType refType1, RefType reftype2, out EdmType commonType) 932private static bool TryGetCommonType(RowType rowType1, RowType rowType2, out EdmType commonRowType) 959private static bool TryGetCommonBaseType(EdmType type1, EdmType type2, out EdmType commonBaseType) 962Dictionary<EdmType, byte> otherBaseTypes = new Dictionary<EdmType, byte>(); 963for (EdmType ancestor = type2; ancestor != null; ancestor = ancestor.BaseType) 970for (EdmType ancestor = type1; ancestor != null; ancestor = ancestor.BaseType) 997private static bool IsEqualComparable(EdmType edmType) 1023private static bool IsOrderComparable(EdmType edmType)
System\Data\Objects\DataClasses\RelatedEnd.cs (5)
571var parameterEdmType = parameterMember.TypeUsage.EdmType; 2333EdmType relationshipType; 2418internal void FindRelationshipSet(ObjectContext context, EntitySet entitySet, out EdmType relationshipType, out RelationshipSet relationshipSet) 2424relationshipType = context.MetadataWorkspace.GetItem<EdmType>(_navigation.RelationshipName, DataSpace.CSpace); 2433if ((EdmType)entitySetBase.ElementType == relationshipType)
System\Data\Objects\DataClasses\RelationshipManager.cs (4)
623EdmType entityType = null; 626objectItemCollection.TryGetItem<EdmType>(identityName, out entityType); 630Dictionary<string, EdmType> types = ObjectItemCollection.LoadTypesExpensiveWay(WrappedOwner.IdentityType.Assembly); 1518EdmType relationshipType;
System\Data\Objects\FieldDescriptor.cs (1)
57EdmType edmType = typeUsage.EdmType;
System\Data\Objects\Internal\EntitySqlQueryBuilder.cs (1)
402internal static ObjectQueryState OfType(ObjectQueryState query, EdmType newType, Type clrOfType)
System\Data\Objects\Internal\ObjectFullSpanRewriter.cs (1)
181EdmType elementType = ((CollectionType)resultType.EdmType).TypeUsage.EdmType;
System\Data\Objects\NextResultGenerator.cs (3)
25EdmType[] _edmTypes; 29internal NextResultGenerator(ObjectContext context, EntityCommand entityCommand, EdmType[] edmTypes, ReadOnlyMetadataCollection<EntitySet> entitySets, MergeOption mergeOption, int resultSetIndex) 57EdmType edmType = _edmTypes[_resultSetIndex];
System\Data\Objects\ObjectContext.cs (9)
1330EdmType entityEdmType = GetTypeUsage(entityCLRType).EdmType; 1384EdmType entityEdmType = GetTypeUsage(entityCLRType).EdmType; 2581EdmType[] expectedEdmTypes = new EdmType[returnTypeCount]; 2585if (!MetadataHelper.TryGetFunctionImportReturnType<EdmType>(functionImport, i, out expectedEdmTypes[i])) 2673private ObjectResult<TElement> CreateFunctionObjectResult<TElement>(EntityCommand entityCommand, ReadOnlyMetadataCollection<EntitySet> entitySets, EdmType[] edmTypes, MergeOption mergeOption) 2702internal ObjectResult<TElement> MaterializedDataRecord<TElement>(EntityCommand entityCommand, DbDataReader storeReader, int resultSetIndex, ReadOnlyMetadataCollection<EntitySet> entitySets, EdmType[] edmTypes, MergeOption mergeOption) 2709EdmType edmType = edmTypes[resultSetIndex]; 3167EdmType modelEdmType;
System\Data\Objects\ObjectQuery_EntitySqlExtensions.cs (1)
368EdmType ofType = null;
System\Data\Objects\ObjectStateManager.cs (6)
50private readonly Dictionary<EdmType, StateManagerTypeMetadata> _metadataStore; 139_metadataStore = new Dictionary<EdmType, StateManagerTypeMetadata>(); 346EdmType entityEdmType = typeMetadata.CdmMetadata.EdmType; 2993internal StateManagerTypeMetadata GetOrAddStateManagerTypeMetadata(EdmType edmType) 3018EdmType edmType = mapping.EdmType; 3043private StateManagerTypeMetadata AddStateManagerTypeMetadata(EdmType edmType, ObjectTypeMapping mapping)
System\Data\Objects\ObjectStateManagerMetadata.cs (1)
150internal StateManagerTypeMetadata(EdmType edmType, ObjectTypeMapping mapping)
System\Data\Objects\ObjectViewFactory.cs (1)
311private static Type GetClrType<TElement>(EdmType ospaceEdmType)
System\Data\Query\InternalTrees\ColumnMapFactory.cs (7)
85internal static CollectionColumnMap CreateColumnMapFromReaderAndType(DbDataReader storeDataReader, EdmType edmType, EntitySet entitySet, Dictionary<string, FunctionImportReturnTypeStructuralTypeColumnRenameMapping> renameList) 151EdmType modelType; 215DbDataReader storeDataReader, EdmType edmType, EntitySet entitySet, 268private static ColumnMap[] GetColumnMapsForType(DbDataReader storeDataReader, EdmType edmType, Dictionary<string, FunctionImportReturnTypeStructuralTypeColumnRenameMapping> renameList) 295EdmType discriminatorType = 319private static int GetMemberOrdinalFromReader(DbDataReader storeDataReader, EdmMember member, EdmType currentType, Dictionary<string, FunctionImportReturnTypeStructuralTypeColumnRenameMapping> renameList) 331private static string GetRenameForMember(EdmMember member, EdmType currentType, Dictionary<string, FunctionImportReturnTypeStructuralTypeColumnRenameMapping> renameList)
System\Data\Query\InternalTrees\Command.cs (2)
1577internal static bool EqualTypes(EdmType x, EdmType y)
System\Data\Query\PlanCompiler\ITreeGenerator.cs (1)
1182private Node BuildSoftCast(Node node, EdmType targetType)
System\Data\Query\PlanCompiler\PreProcessor.cs (4)
1417private bool CanRewriteTypeTest(EdmType testType, EdmType argumentType) 1437foreach (EdmType subType in MetadataHelper.GetTypeAndSubtypesOf(testType, m_command.MetadataWorkspace, true /*includeAbstractTypes*/)) 1571private int FindPosition(EdmType type, EdmMember member)
System\Data\Query\PlanCompiler\StructuredTypeInfo.cs (2)
426private bool TryGetDiscriminatorMap(md.EdmType type, out ExplicitDiscriminatorMap discriminatorMap) 906md.EdmType refType = p.ToEnd.TypeUsage.EdmType;
System\Data\Query\PlanCompiler\TypeUtils.cs (3)
78internal static bool Equals(md.EdmType x, md.EdmType y) 101internal static bool IsUdt(md.EdmType type)
System.Data.Entity.Design (44)
System\Data\Entity\Design\Common\MetadataItemSerializer.cs (17)
29public static readonly EdmType NoSpecificTypeSentinal = MetadataItem.GetBuiltInType(BuiltInTypeKind.EdmType); 50WriteXml(writer, collection, namespaceToWrite, new ErrorsLookup(), new List<EdmType>(), null, null, schemaVersion, xmlPrefixToNamespaces); 53internal static void WriteXml(XmlWriter writer, ItemCollection collection, string namespaceToWrite, ErrorsLookup errorsLookup, List<EdmType> commentedOutItems, string provider, string providerManifestToken, Version schemaVersion, params KeyValuePair<string, string>[] xmlPrefixToNamespaces) 70foreach (EdmType type in collection.GetItems<EdmType>()) 91foreach (EdmType type in commentedOutItems) 127private void WriteTypeElement(EdmType type) 222var elementType = ((CollectionType)function.ReturnParameter.TypeUsage.EdmType).TypeUsage.EdmType; 396private void WriteErrorsComment(EdmType type) 450EdmType type = GetEdmType(typeUsage); 578private IEnumerable<FacetDescription> GetAssociatedFacetDescriptions(EdmType type) 580MethodInfo mi = typeof(EdmType).GetMethod("GetAssociatedFacetDescriptions", BindingFlags.NonPublic | BindingFlags.Instance); 598private EdmType GetEdmType(TypeUsage typeUsage) 611EdmType type = GetEdmType(typeUsage); 622private EdmType GetModelType(EdmType edmType) 776private string GetFullName(EdmType type)
System\Data\Entity\Design\Common\MetadataUtil.cs (4)
295internal static bool IsComplexType(EdmType type) 300internal static bool IsPrimitiveType(EdmType type) 310internal static bool IsValidKeyType(Version entityFrameworkVersion, EdmType type) 333internal static bool IsEnumerationType(EdmType type)
System\Data\Entity\Design\EntityStoreSchemaGenerator.cs (2)
44private List<EdmType> _invalidTypes; 207_invalidTypes = new List<EdmType>(session.InvalidTypes);
System\Data\Entity\Design\EntityStoreSchemaGenerator\EntityStoreSchemaGenerator.LoadMethodSessionState.cs (4)
31public HashSet<EdmType> InvalidTypes = new HashSet<EdmType>(); 178internal void AddErrorsForType(EdmType type, params EdmSchemaError [] errors) 183internal void AddErrorsForType(EdmType type, ICollection<EdmSchemaError> errors)
System\Data\EntityModel\Emitters\AttributeEmitter.cs (5)
66private void EmitKnownTypeAttributes(EdmType baseType, ClientApiGenerator generator, CodeTypeDeclaration typeDecl) 68foreach (EdmType edmType in generator.GetDirectSubTypes(baseType)) 121EdmType type = emitter.Item as EdmType; 132public void EmitSchemaTypeAttribute(string attributeName, EdmType type, CodeTypeMember member)
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (6)
278internal IEnumerable<EdmType> GetDirectSubTypes(EdmType edmType) 280return _edmItemCollection.GetItems<EdmType>().Where(b => b.BaseType == edmType); 430public CodeTypeReference GetFullyQualifiedTypeReference(EdmType type) 436public CodeTypeReference GetFullyQualifiedTypeReference(EdmType type, bool addGlobalQualifier) 452public CodeTypeReference GetLeastPossibleQualifiedTypeReference(EdmType type)
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (4)
128EdmType returnType = GetReturnTypeFromFunctionImport(functionImport); 142private EdmType GetReturnTypeFromFunctionImport(EdmFunction functionImport) 144EdmType returnType = null; 507EdmType returnType = GetReturnTypeFromFunctionImport(functionImport);
System\Data\EntityModel\Emitters\PropertyEmitter.cs (1)
568EdmType propertyType = property.TypeUsage.EdmType;
System\Data\EntityModel\Emitters\Utils.cs (1)
297public static bool TryGetPrimitiveTypeKind(EdmType type, out PrimitiveTypeKind modelType )
System.Data.Services (17)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (17)
308foreach (KeyValuePair<string, HashSet<EdmType>> typesInNamespace in metadataManager.NamespaceAlongWithTypes) 1213private static bool IsPrimitiveType(EdmType type) 1807private static void WriteEdmTypes(XmlWriter xmlWriter, IEnumerable<EdmType> edmTypes, MetadataManager metadataManager) 1810foreach (EdmType edmType in edmTypes) 2492private Dictionary<string, HashSet<EdmType>> edmTypes = new Dictionary<string, HashSet<EdmType>>(StringComparer.Ordinal); 2571internal IEnumerable<KeyValuePair<string, HashSet<EdmType>>> NamespaceAlongWithTypes 2595EdmType targetType = ((RefType)((NavigationProperty)member).ToEndMember.TypeUsage.EdmType).ElementType; 2596HashSet<EdmType> typesInNamespace; 2620EdmType endType = ((RefType)member.TypeUsage.EdmType).ElementType; 2622HashSet<EdmType> typesInNamespace; 2709private void AddVisibleEdmType(EdmType edmType) 2711HashSet<EdmType> typesInSameNamespace; 2715typesInSameNamespace = new HashSet<EdmType>(EqualityComparer<EdmType>.Default); 2727EdmType edmType = this.workspace.GetItem<EdmType>(resourceType.FullName, DataSpace.CSpace);
System.Data.Services.Design (15)
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (7)
29internal static bool IsComplexType(EdmType type) 37internal static bool IsPrimitiveType(EdmType type) 497foreach (EdmType item in _edmItemCollection.GetItems<EdmType>()) 545public CodeTypeReference GetLeastPossibleQualifiedTypeReference(EdmType type) 574EdmType edm = item as EdmType;
System\Data\EntityModel\Emitters\NamespaceEmitter.cs (6)
75EdmType edmType = (element as EdmType); 97foreach (string namespaceName in (from x in this.Generator.EdmItemCollection.GetItems<EdmType>() select x.NamespaceName).Distinct()) 104EdmType edmType = (element as EdmType); 258.OfType<EdmType>()
System\Data\EntityModel\Emitters\PropertyEmitter.cs (1)
493EdmType propertyType = property.TypeUsage.EdmType;
System\Data\EntityModel\Emitters\Utils.cs (1)
277public static bool TryGetPrimitiveTypeKind(EdmType type, out PrimitiveTypeKind modelType)
System.Web.DynamicData (5)
DynamicData\ModelProviders\EFColumnProvider.cs (2)
98var edmType = EdmMember.TypeUsage.EdmType; 146var edmType = member.TypeUsage.EdmType;
DynamicData\ModelProviders\EFDataModelProvider.cs (3)
16private Dictionary<EdmType, Type> _entityTypeToClrType = new Dictionary<EdmType, Type>(); 85internal Type GetClrType(EdmType entityType) {
System.Web.Entity (16)
System\Data\WebControls\EntityDataSourceUtil.cs (16)
188List<EdmType> types = new List<EdmType>(EntityDataSourceUtil.GetTypeAndSubtypesOf(entityType, ocItemCollection, /*includeAbstractTypes*/true)); 199internal static IEnumerable<EdmType> GetTypeAndSubtypesOf(EntityType type, ReadOnlyCollection<GlobalItem> itemCollection, bool includeAbstractTypes) 207foreach (EdmType subType in GetTypeAndSubtypesOf<EntityType>(type, itemCollection, includeAbstractTypes)) 213foreach (EdmType subType in GetTypeAndSubtypesOf<ComplexType>(type, itemCollection, includeAbstractTypes)) 222foreach(EdmType type in types) 436private static IEnumerable<EdmType> GetTypeAndSubtypesOf<T_EdmType>(EdmType type, ReadOnlyCollection<GlobalItem> itemCollection, bool includeAbstractTypes) 437where T_EdmType : EdmType 464private static bool IsStrictSubtypeOf(EdmType firstType, EdmType secondType) 473for (EdmType t = firstType.BaseType; t != null; t = t.BaseType) 700EdmType memberType = member.TypeUsage.EdmType; 851internal static bool IsScalar(EdmType type) 881internal static string CreateEntitySqlTypeIdentifier(EdmType type) 986EdmType propertyType = property.TypeUsage.EdmType;