1 type derived from EntityType
System.Data.Entity (1)
System\Data\Metadata\Edm\EntityType.cs (1)
227internal sealed class ClrEntityType : EntityType
1 instantiation of EntityType
System.Data.Entity (1)
System\Data\Metadata\Converter.cs (1)
344EntityType entityType = new EntityType(element.Name,
643 references to EntityType
System.Data.Entity (464)
System\Data\Common\CommandTrees\DefaultExpressionVisitor.cs (5)
748result = CqtBuilder.CreateNewEntityWithRelationshipsExpression((EntityType)newType.EdmType, newArguments, newRefs); 768EntityType targetType = (EntityType)TypeHelpers.GetEdmType<RefType>(expression.ResultType).ElementType; 771EntityType newType = (EntityType)this.VisitType(targetType);
System\Data\Common\CommandTrees\ExpressionBuilder\DbExpressionBuilder.cs (5)
1180public static DbRefExpression CreateRef(this EntitySet entitySet, EntityType entityType, IEnumerable<DbExpression> keyValues) 1198public static DbRefExpression CreateRef(this EntitySet entitySet, EntityType entityType, params DbExpression[] keyValues) 1210private static DbRefExpression CreateRefExpression(EntitySet entitySet, EntityType entityType, IEnumerable<DbExpression> keyValues) 1253public static DbRefExpression RefFromKey(this EntitySet entitySet, DbExpression keyRow, EntityType entityType) 2824internal static DbNewInstanceExpression CreateNewEntityWithRelationshipsExpression(EntityType entityType, IList<DbExpression> attributeValues, IList<DbRelatedEntityRef> relationships)
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (8)
114endType = TypeHelpers.CreateReferenceTypeUsage(TypeHelpers.GetEdmType<EntityType>(endType)); 1096EntityType entityType; 1112EntityType entityType = null; 1113if (!TypeHelpers.TryGetEdmType<EntityType>(argument.ResultType, out entityType) || null == entityType) 1127internal static TypeUsage ValidateCreateRef(EntitySet entitySet, EntityType entityType, IEnumerable<DbExpression> keyValues, out DbExpression keyConstructor) 1166internal static TypeUsage ValidateRefFromKey(EntitySet entitySet, DbExpression keyValues, EntityType entityType) 1643internal static TypeUsage ValidateNewEntityWithRelationships(EntityType entityType, IEnumerable<DbExpression> attributeValues, IList<DbRelatedEntityRef> relationships, out DbExpressionList validArguments, out System.Collections.ObjectModel.ReadOnlyCollection<DbRelatedEntityRef> validRelatedRefs) 2030retType = TypeHelpers.CreateReferenceTypeUsage(TypeHelpers.GetEdmType<EntityType>(retType));
System\Data\Common\CommandTrees\Internal\ExpressionCopier.cs (2)
117EntityType mappedEntityType = (EntityType)this.VisitType(refType.ElementType);
System\Data\Common\CommandTrees\Internal\ViewSimplifier.cs (8)
149var principalSetsAndDependentTypes = new HashSet<Tuple<EntityType, AssociationSetEnd, ReferentialConstraint>>(); 161EntityType requiredSourceNavType = (EntityType)TypeHelpers.GetEdmType<RefType>(dependentSetEnd.CorrespondingAssociationEndMember.TypeUsage).ElementType; 221EntityType constructedEntityType = TypeHelpers.GetEdmType<EntityType>(entityConstructor.ResultType); 280private static DbRelatedEntityRef RelatedEntityRefFromAssociationSetEnd(EntityType constructedEntityType, DbNewInstanceExpression entityConstructor, AssociationSetEnd principalSetEnd, ReferentialConstraint fkConstraint) 282EntityType principalEntityType = (EntityType)TypeHelpers.GetEdmType<RefType>(fkConstraint.FromRole.TypeUsage).ElementType;
System\Data\Common\EntityRecordInfo.cs (2)
30public EntityRecordInfo(EntityType metadata, IEnumerable<EdmMember> memberInfo, EntityKey entityKey, EntitySet entitySet) 45internal EntityRecordInfo(EntityType metadata, EntityKey entityKey, EntitySet entitySet)
System\Data\Common\EntitySql\SemanticAnalyzer.cs (9)
1007EntityType driverEntityType = metadataType.TypeUsage.EdmType as EntityType; 1419EntityType entityType = (EntityType)type.EdmType; 1554private static DbRelatedEntityRef ConvertRelatedEntityRef(AST.RelshipNavigationExpr relshipExpr, EntityType driverEntityType, SemanticResolver sr) 1694var entityType = sourceEntityRef.ResultType.EdmType as EntityType; 1921converted = DbExpressionBuilder.RefFromKey(entitySet, keyRowExpression, (EntityType)targetTypeUsage.EdmType); 2507converted = TypeHelpers.CreateReferenceTypeUsage((EntityType)targetTypeUsage.EdmType);
System\Data\Common\Internal\Materialization\ColumnMapKeyBuilder.cs (1)
250EntityType referencedEntityType;
System\Data\Common\Internal\Materialization\Shaper.cs (4)
110public TElement Discriminate<TElement>(object[] discriminatorValues, Func<object[], EntityType> discriminate, KeyValuePair<EntityType, Func<Shaper, TElement>>[] elementDelegates) 112EntityType entityType = discriminate(discriminatorValues); 114foreach (KeyValuePair<EntityType, Func<Shaper, TElement>> typeDelegatePair in elementDelegates)
System\Data\Common\Internal\Materialization\Translator.cs (7)
1218EntityType cSpaceType = (EntityType)columnMap.Type.EdmType; 1307private Expression Emit_ConstructEntity(EntityType oSpaceType, IEnumerable<MemberBinding> propertyBindings, Expression entityKeyReader, Expression entitySetReader, TranslatorArg arg, EntityProxyTypeInfo proxyTypeInfo) 1503Type typeDelegatePairType = typeof(KeyValuePair<EntityType, Func<Shaper, TElement>>); 1504ConstructorInfo typeDelegatePairConstructor = typeDelegatePairType.GetConstructor(new Type[] { typeof(EntityType), typeof(Func<Shaper, TElement>) }); 1598EntityType entityTypeMetadata = null; 1599if (TypeHelpers.TryGetEdmType<EntityType>(columnMap.Type, out entityTypeMetadata))
System\Data\Common\Utils\MetadataHelper.cs (43)
33if (typeof(EntityType).Equals(typeof(T)) && resultType is EntityType 219internal static EntityType GetEntityTypeForEnd(AssociationEndMember end) 228return (EntityType)endType; 273internal static bool IsAssociationValidForEntityType(AssociationSetEnd toEnd, EntityType type) 280EntityType fromType = GetEntityTypeForEnd(fromEnd.CorrespondingAssociationEndMember); 369foreach (EdmType subType in GetTypeAndSubtypesOf<EntityType>(type, itemCollection, includeAbstractTypes)) 422specificType = specificType.BaseType as EntityType; //The cast is guaranteed to work. See use of GetItems<T_EdmType> in GetTypesAndSubTypesOf() 433internal static Dictionary<EntityType, Set<EntityType>> BuildUndirectedGraphOfTypes(EdmItemCollection edmItemCollection) 435Dictionary<EntityType, Set<EntityType>> graph = new Dictionary<EntityType, Set<EntityType>>(); 437IEnumerable<EntityType> typesInWorkSpace = edmItemCollection.GetItems<EntityType>(); 438foreach (EntityType childType in typesInWorkSpace) 445EntityType parentType = childType.BaseType as EntityType; 458internal static bool IsParentOf(EntityType a, EntityType b) 460EntityType parent = b.BaseType as EntityType; 470parent = parent.BaseType as EntityType; 481private static void AddDirectedEdgeBetweenEntityTypes(Dictionary<EntityType, Set<EntityType>> graph, EntityType a, EntityType b) 483Set<EntityType> references; 490references = new Set<EntityType>(); 506internal static bool DoesEndKeySubsumeAssociationSetKey(AssociationSet assocSet, AssociationEndMember thisEnd, HashSet<Pair<EdmMember, EntityType>> associationkeys) 509EntityType thisEndsEntityType = (EntityType)((RefType)thisEnd.TypeUsage.EdmType).ElementType; 511HashSet<Pair<EdmMember, EntityType>> thisEndKeys = new HashSet<Pair<EdmMember, EntityType>>( 512thisEndsEntityType.KeyMembers.Select(edmMember => new Pair<EdmMember, EntityType>(edmMember, thisEndsEntityType))); 517EntityType otherEndType; 522otherEndType = (EntityType)((RefType)((AssociationEndMember)constraint.FromRole).TypeUsage.EdmType).ElementType; 527otherEndType = (EntityType)((RefType)((AssociationEndMember)constraint.ToRole).TypeUsage.EdmType).ElementType; 538associationkeys.Remove(new Pair<EdmMember, EntityType>(member, otherEndType)); 701return ((EntityType)member.DeclaringType).KeyMembers.Contains(member); 905internal static NavigationPropertyAccessor GetNavigationPropertyAccessor(EntityType sourceEntityType, AssociationEndMember sourceMember, AssociationEndMember targetMember) 911internal static NavigationPropertyAccessor GetNavigationPropertyAccessor(EntityType entityType, string relationshipType, string fromName, string toName)
System\Data\EntityKey.cs (2)
945EntityType entityType = record.DataRecordInfo.RecordType.EdmType as EntityType;
System\Data\EntityModel\SchemaObjectModel\ReferenceTypeElement.cs (2)
81EntityType entityType = edmType as EntityType;
System\Data\EntityModel\SchemaObjectModel\RowTypePropertyElement.cs (2)
215EntityType entityType = edmType as EntityType;
System\Data\Mapping\BaseMetadataMappingVisitor.cs (3)
90protected virtual void Visit(EntityType entityType) 223Visit((EntityType)edmType); 323Visit((EntityType)entityTypeBase);
System\Data\Mapping\DefaultObjectMappingItemCollection.cs (2)
315clrType = new RefType((EntityType)ConvertCSpaceToOSpaceType(((RefType)cdmType).ElementType)); 354cdmType = new RefType((EntityType)(ConvertOSpaceToCSpaceType(((RefType)clrType).ElementType)));
System\Data\Mapping\FunctionImportMapping.cs (37)
63this.MappedEntityTypes = new OM.ReadOnlyCollection<EntityType>(new List<EntityType>()); 72var isOfTypeEntityTypeColumnsRenameMapping = new Dictionary<EntityType, OM.Collection<FunctionImportReturnTypePropertyMapping>>(); 73var entityTypeColumnsRenameMapping = new Dictionary<EntityType, OM.Collection<FunctionImportReturnTypePropertyMapping>>(); 90m_entityTypeLineInfos = new KeyToListMap<EntityType, LineInfo>(EqualityComparer<EntityType>.Default); 91m_isTypeOfLineInfos = new KeyToListMap<EntityType, LineInfo>(EqualityComparer<EntityType>.Default); 96foreach (var entityType in entityTypeMapping.EntityTypes) 100foreach (var isTypeOf in entityTypeMapping.IsOfTypeEntityTypes) 129var impliedEntityTypesSet = new Set<EntityType>(entityTypeMapping.GetMappedEntityTypes(m_itemCollection)); 139foreach (var isOfType in entityTypeMapping.IsOfTypeEntityTypes) 150foreach (var entityType in entityTypeMapping.EntityTypes) 193this.MappedEntityTypes = new OM.ReadOnlyCollection<EntityType>(new List<EntityType>() { }); 198private readonly KeyToListMap<EntityType, LineInfo> m_entityTypeLineInfos; 199private readonly KeyToListMap<EntityType, LineInfo> m_isTypeOfLineInfos; 204internal readonly OM.ReadOnlyCollection<EntityType> MappedEntityTypes; 226KeyToListMap<EntityType, LineInfo> unreachableEntityTypes; 227KeyToListMap<EntityType, LineInfo> unreachableIsTypeOfs; 275out KeyToListMap<EntityType, LineInfo> unreachableEntityTypes, 276out KeyToListMap<EntityType, LineInfo> unreachableIsTypeOfs) 287Set<EntityType> reachableTypes = validateAmbiguity ? 372private Set<EntityType> FindReachableTypes(DomainConstraintConversionContext<string, ValueCondition> converter, Vertex[] mappingConditions) 400var reachableTypes = new Set<EntityType>(); 423private Set<EntityType> FindUnambiguouslyReachableTypes(DomainConstraintConversionContext<string, ValueCondition> converter, Vertex[] mappingConditions) 467var reachableTypes = new Set<EntityType>(); 479private void CollectUnreachableTypes(Set<EntityType> reachableTypes, out KeyToListMap<EntityType, LineInfo> entityTypes, out KeyToListMap<EntityType, LineInfo> isTypeOfEntityTypes) 482entityTypes = new KeyToListMap<EntityType, LineInfo>(EqualityComparer<EntityType>.Default); 483isTypeOfEntityTypes = new KeyToListMap<EntityType, LineInfo>(EqualityComparer<EntityType>.Default); 492foreach (var isTypeOf in m_isTypeOfLineInfos.Keys) 495.Cast<EntityType>() 505foreach (var entityType in m_entityTypeLineInfos.Keys)
System\Data\Mapping\FunctionImportMapping.ReturnTypeRenameMapping.cs (13)
36internal FunctionImportEntityTypeMapping(IEnumerable<EntityType> isOfTypeEntityTypes, 37IEnumerable<EntityType> entityTypes, IEnumerable<FunctionImportEntityTypeMappingCondition> conditions, 42this.IsOfTypeEntityTypes = new ReadOnlyCollection<EntityType>( 44this.EntityTypes = new ReadOnlyCollection<EntityType>( 51internal readonly ReadOnlyCollection<EntityType> EntityTypes; 52internal readonly ReadOnlyCollection<EntityType> IsOfTypeEntityTypes; 57internal IEnumerable<EntityType> GetMappedEntityTypes(ItemCollection itemCollection) 63.Cast<EntityType>())); 116Dictionary<EntityType, Collection<FunctionImportReturnTypePropertyMapping>> isOfTypeEntityTypeColumnsRenameMapping, 117Dictionary<EntityType, Collection<FunctionImportReturnTypePropertyMapping>> entityTypeColumnsRenameMapping) 125foreach (EntityType entityType in isOfTypeEntityTypeColumnsRenameMapping.Keys) 131foreach (EntityType entityType in entityTypeColumnsRenameMapping.Keys) 142EntityType entityType,
System\Data\Mapping\FunctionImportMappingNonComposable.cs (2)
100internal EntityType Discriminate(object[] discriminatorValues, int resultSetIndex) 138EntityType entityType = null;
System\Data\Mapping\MetadataMappingHasherVisitor.cs (1)
298protected override void Visit(EntityType entityType)
System\Data\Mapping\StorageEntityTypeMapping.cs (3)
114internal EntityType GetContainerType(string memberName) { 115foreach (EntityType type in m_entityTypes.Values) { 122foreach (EntityType type in m_isOfEntityTypes.Values)
System\Data\Mapping\StorageMappingItemCollection.cs (1)
642.SelectMany(e => ((EntityType)e).Properties)
System\Data\Mapping\StorageMappingItemCollection.ViewDictionary.cs (2)
298EntityType dependentType = MetadataHelper.GetEntityTypeForEnd((AssociationEndMember)rc.ToRole); 299EntityType principalType = MetadataHelper.GetEntityTypeForEnd((AssociationEndMember)rc.FromRole);
System\Data\Mapping\StorageMappingItemLoader.cs (44)
905foreach (EntityType unmappedType in unmappedTypes) 927EntityType rootEntityType, 928Func<EntityType, string> typeNotAssignableMessage, 929out Set<EntityType> isOfTypeEntityTypes, 930out Set<EntityType> entityTypes) 935isOfTypeEntityTypes = new Set<EntityType>(); 936entityTypes = new Set<EntityType>(); 967EntityType entityType; 968if (!this.EdmItemCollection.TryGetItem<EntityType>(entityTypeName, out entityType)) 1038Set<EntityType> entityTypes; 1039Set<EntityType> isOfTypeEntityTypes; 1040EntityType rootEntityType = (EntityType)entitySetMapping.Set.ElementType; 1051foreach (EntityType entityType in entityTypes) 1055foreach (EntityType isOfTypeEntityType in isOfTypeEntityTypes) 1150EntityType entityType = (EntityType)entityTypeMapping.Types[0]; 1298Set<EntityType> entityTypes; 1299Set<EntityType> isOfTypeEntityTypes; 1300EntityType rootEntityType = (EntityType)setMapping.Set.ElementType; 1312EntityType entityType; 1667EntityType returnEntityType; 1668if (MetadataHelper.TryGetFunctionImportReturnType<EntityType>(functionImport, i, out returnEntityType) && 1851EntityType resultEntityType; 1852if (MetadataHelper.TryGetFunctionImportReturnType<EntityType>(functionImport, resultSetIndex, out resultEntityType)) 1867(EntityType e) => Strings.Mapping_FunctionImport_InvalidContentEntityTypeForEntitySet(e.FullName, 1963EntityType resultEntityType, 1964Func<EntityType, string> registerEntityTypeMismatchError, 1972Set<EntityType> isOfTypeEntityTypes; 1973Set<EntityType> entityTypes; 2106Enumerable.Empty<EntityType>(), 2107new EntityType[] { (EntityType)resultType }, 2206if (!TryInferTVFKeysForEntityType((EntityType)typeMapping.Item1, typeMapping.Item3, out currentKeys)) 2241private static bool TryInferTVFKeysForEntityType(EntityType entityType, List<StoragePropertyMapping> propertyMappings, out EdmProperty[] keys) 2361var entityType = functionImportKB.MappedEntityTypes[typeID]; 2659EntityType tableType = tableMember.ElementType; 2739EntityType tableType = null; 2851((EntityType)refType.ElementType).Properties.TryGetValue(propertyName, false /*ignoreCase*/, out member); 3129private StorageEndPropertyMapping LoadEndPropertyMapping(XPathNavigator nav, AssociationEndMember end, EntityType tableType) 3765internal StorageModificationFunctionMapping LoadEntityTypeModificationFunctionMapping(XPathNavigator nav, EntitySetBase entitySet, bool allowCurrentVersion, bool allowOriginalVersion, EntityType entityType) 3814private IEnumerable<StorageModificationFunctionResultBinding> LoadResultBindings(XPathNavigator nav, EntityType entityType) 4238!((EntityType)type).KeyMembers.TryGetValue(propertyName, false, out property))
System\Data\Mapping\StorageModificationFunctionMapping.cs (4)
77EntityType entityType, 91internal readonly EntityType EntityType; 152this.CollocatedAssociationSetEnds = GetReferencedAssociationSetEnds(entitySet as EntitySet, entityType as EntityType, parameterBindings) 192private static IEnumerable<AssociationSetEnd> GetReferencedAssociationSetEnds(EntitySet entitySet, EntityType entityType, IEnumerable<StorageModificationFunctionParameterBinding> parameterBindings)
System\Data\Mapping\Update\Internal\ExtractorMetadata.cs (4)
49EntityType entityType = null; 62entityType = (EntityType)type; 146identifier = m_translator.KeyManager.GetKeyIdentifierForMemberOffset(key, keyOrdinal, ((EntityType)m_type).KeyMembers.Count); 201EntityType entityType = entityKey.GetEntitySet(m_translator.MetadataWorkspace).ElementType;
System\Data\Mapping\Update\Internal\FunctionMappingTranslator.cs (5)
63private readonly Dictionary<EntityType, StorageEntityTypeModificationFunctionMapping> m_typeMappings; 69m_typeMappings = new Dictionary<EntityType, StorageEntityTypeModificationFunctionMapping>(); 192EntityType entityType; 195entityType = (EntityType)stateEntry.Current.StructuralType; 199entityType = (EntityType)stateEntry.Original.StructuralType;
System\Data\Mapping\Update\Internal\Propagator.ExtentPlaceholderCreator.cs (2)
172EntityType entityType = (EntityType)((RefType)end.TypeUsage.EdmType).ElementType;
System\Data\Mapping\Update\Internal\RelationshipConstraintValidator.cs (3)
80EntityType entityType = EntityState.Added == stateEntry.State ? 120private static EntityType GetEntityType(DbDataRecord dbDataRecord) 126return (EntityType)extendedRecord.DataRecordInfo.RecordType.EdmType;
System\Data\Mapping\Update\Internal\TableChangeProcessor.cs (1)
85EntityType tableType = table.ElementType;
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (4)
231EntityType dependentType = MetadataHelper.GetEntityTypeForEnd((AssociationEndMember)constraint.ToRole); 240EntityType principalType = MetadataHelper.GetEntityTypeForEnd((AssociationEndMember)constraint.FromRole); 352EntityType entityType = (EntityType)endType.ElementType;
System\Data\Mapping\ViewGeneration\DiscriminatorMap.cs (13)
42internal readonly System.Collections.ObjectModel.ReadOnlyCollection<KeyValuePair<object, EntityType>> TypeMap; 60List<KeyValuePair<object, EntityType>> typeMap, 96var typeMap = new List<KeyValuePair<object, EntityType>>(); 99var typeToRelPropertyMap = new Dictionary<EntityType, List<Query.InternalTrees.RelProperty>>(); 120EntityType currentType; 124typeMap.Add(new KeyValuePair<object, EntityType>(discriminatorValue, currentType)); 134EntityType elseType; 137typeMap.Add(new KeyValuePair<object, EntityType>(discriminatorDomain.Single(), elseType)); 159Dictionary<EntityType, List<Query.InternalTrees.RelProperty>> typeToRelPropertyMap) 169foreach (KeyValuePair<EntityType, List<Query.InternalTrees.RelProperty>> kv in typeToRelPropertyMap) 186Dictionary<EntityType, List<Query.InternalTrees.RelProperty>> typeToRelPropertyMap, 187out EntityType entityType) 195entityType = (EntityType)constructor.ResultType.EdmType;
System\Data\Mapping\ViewGeneration\QueryRewriting\FragmentQueryKB.cs (5)
50HashSet<Pair<EdmMember, EntityType>> associationkeys = new HashSet<Pair<EdmMember, EntityType>>(); 56EntityType type = (EntityType)((RefType)endMember.TypeUsage.EdmType).ElementType; 57type.KeyMembers.All(member => associationkeys.Add(new Pair<EdmMember, EntityType>(member, type)) || true /* prevent early termination */);
System\Data\Mapping\ViewGeneration\Structures\CaseStatement.cs (1)
345(EntityType)typeConstructor.ResultType.EdmType,
System\Data\Mapping\ViewGeneration\Structures\CellQuery.cs (2)
470EntityType entityType = (EntityType)Extent.ElementType;
System\Data\Mapping\ViewGeneration\Structures\LeafCellTreeNode.cs (4)
219EntityType toEndEntityType = (EntityType)((RefType)(toEnd.TypeUsage.EdmType)).ElementType; 220EntityType fromEndEntityType = (EntityType)(((RefType)fromEnd.TypeUsage.EdmType).ElementType);
System\Data\Mapping\ViewGeneration\Structures\MemberDomainMap.cs (2)
64internal MemberDomainMap(ViewTarget viewTarget, bool isValidationEnabled, IEnumerable<Cell> extentCells, EdmItemCollection edmItemCollection, ConfigViewGenerator config, Dictionary<EntityType, Set<EntityType>> inheritanceGraph)
System\Data\Mapping\ViewGeneration\Structures\MemberPath.cs (15)
258internal bool IsAlwaysDefined(Dictionary<EntityType, Set<EntityType>> inheritanceGraph) 287EntityType entitySetType = m_extent.ElementType as EntityType; 294EntityType memberDeclaringType = m_path[0].DeclaringType as EntityType; 295EntityType parentType = memberDeclaringType.BaseType as EntityType; 311private static bool RecurseToFindMemberAbsentInConcreteType(EntityType current, EntityType avoidEdge, EdmMember member, EntityType entitySetType, Dictionary<EntityType, Set<EntityType>> inheritanceGraph) 313Set<EntityType> edges = inheritanceGraph[current]; 317foreach (var edge in edges.Where(type => !type.EdmEquals(avoidEdge)))
System\Data\Mapping\ViewGeneration\Structures\MemberProjectionIndex.cs (1)
192memberType is EntityType || // for entity sets
System\Data\Mapping\ViewGeneration\Structures\TypeConstant.cs (5)
107EntityType refEntityType = (EntityType)(((RefType)outputMember.EdmType).ElementType); 157EntityType refEntityType = (EntityType)(((RefType)outputMember.EdmType).ElementType); 185EntityType entityType = refScopeEntitySet.ElementType;
System\Data\Mapping\ViewGeneration\Structures\WithStatement.cs (5)
30EntityType fromEndEntityType, 32EntityType toEndEntityType, 48private readonly EntityType m_fromEndEntityType; 50private readonly EntityType m_toEndEntityType; 56internal EntityType FromEndEntityType
System\Data\Mapping\ViewGeneration\Validation\BasicCellRelation.cs (2)
77EntityType entityType = (EntityType)m_cellQuery.Extent.ElementType;
System\Data\Mapping\ViewGeneration\Validation\ExtentKey.cs (3)
50internal static List<ExtentKey> GetKeysForEntityType(MemberPath prefix, EntityType entityType) 63internal static ExtentKey GetPrimaryKeyForEntityType(MemberPath prefix, EntityType entityType) 86EntityType entityType = MetadataHelper.GetEntityTypeForEnd(endMember);
System\Data\Mapping\ViewGeneration\Validation\ViewKeyConstraint.cs (3)
111ExtentKey tableKey = ExtentKey.GetPrimaryKeyForEntityType(tablePrefix, (EntityType)table.ElementType); 115cSetKey = ExtentKey.GetPrimaryKeyForEntityType(cSetPrefix, (EntityType)cSet.ElementType); 159ExtentKey tableKey = ExtentKey.GetPrimaryKeyForEntityType(tablePrefix, (EntityType)table.ElementType);
System\Data\Mapping\ViewGeneration\ViewGenerator.cs (2)
63Dictionary<EntityType, Set<EntityType>> inheritanceGraph = MetadataHelper.BuildUndirectedGraphOfTypes(entityContainerMapping.StorageMappingItemCollection.EdmItemCollection);
System\Data\Mapping\ViewValidator.cs (4)
188private IEnumerable<EntityType> GetEntityTypes() 193return MetadataHelper.GetTypeAndSubtypesOf(_elementType, this.EdmItemCollection, true).OfType<EntityType>(); 198return Enumerable.Repeat((EntityType)_elementType, 1); 203return Enumerable.Empty<EntityType>();
System\Data\Metadata\Converter.cs (15)
315private static EntityType ConvertToEntityType(Som.SchemaEntityType element, 344EntityType entityType = new EntityType(element.Name, 375EntityType entityType = (EntityType)newGlobalItems[element]; 461EntityType endEntityType = (EntityType)LoadSchemaElement(entityTypeElement, 546EntityType endMemberType) 614(EntityType)LoadSchemaElement(set.EntityType, 667EntityType endEntityType = (EntityType)LoadSchemaElement(end.EntitySet.EntityType, 782private static NavigationProperty ConvertToNavigationProperty(EntityType declaringEntityType, 790EntityType toEndEntityType = (EntityType)LoadSchemaElement(somNavigationProperty.Type, 1218if (edmType is EntityType && isRefType) 1220usage = TypeUsage.Create(new RefType(edmType as EntityType));
System\Data\Metadata\Edm\EntitySet.cs (3)
35internal EntitySet(string name, string schema, string table, string definingQuery, EntityType entityType) 57public new EntityType ElementType 61return (EntityType)base.ElementType;
System\Data\Metadata\Edm\EntityTypeBase.cs (1)
129EntityType entityType)
System\Data\Metadata\Edm\LightweightCodeGenerator.cs (2)
470EntityType sourceEntityType = MetadataHelper.GetEntityTypeForEnd(sourceMember); 471EntityType targetEntityType = MetadataHelper.GetEntityTypeForEnd(targetMember);
System\Data\Metadata\Edm\RefType.cs (1)
28internal RefType(EntityType entityType)
System\Data\Metadata\Edm\RelationshipEndMember.cs (2)
78public EntityType GetEntityType() 82return (EntityType)((RefType)TypeUsage.EdmType).ElementType;
System\Data\Metadata\EdmValidator.cs (2)
177ValidateEntityType((EntityType)item, errors, validatedItems); 300private void ValidateEntityType(EntityType item, List<EdmItemError> errors, HashSet<MetadataItem> validatedItems)
System\Data\Metadata\Helper.cs (1)
145return ((EntityType)edmType).Properties;
System\Data\Metadata\MetadataWorkspace.cs (1)
444internal void ImplicitLoadFromEntityType(EntityType type, Assembly callingAssembly)
System\Data\Metadata\ObjectLayer\ObjectItemAttributeAssemblyLoader.cs (7)
116EntityType entityType = elementType as EntityType; 258EntityType entityType; 427private bool TryGetRelationshipEndEntityType(Type type, out EntityType entityType) 441entityType = (EntityType)edmType; 510((EntityType)structuralType).AddKeyMember(newMember); 687((EntityType)declaringType).AddKeyMember(enumProperty);
System\Data\Metadata\ObjectLayer\ObjectItemConventionAssemblyLoader.cs (4)
701EntityType ospaceEndType = (EntityType)ospaceEndTypes[i]; 751bool isKeyMember = Helper.IsEntityType(cspaceType) && ((EntityType)cspaceType).KeyMemberNames.Contains(clrProperty.Name); 765((EntityType)ospaceType).AddKeyMember(ospaceProperty);
System\Data\Metadata\TypeHelpers.cs (7)
394return new RefType((EntityType)entityType); 397internal static TypeUsage CreateReferenceTypeUsage(EntityType entityType) 504return (IBaseList<EdmMember>)((EntityType)edmType).Properties; 536return ((EntityType)edmType).GetDeclaredOnlyMembers<EdmProperty>(); 559return ((EntityType)edmType).Properties; 620internal static bool TryGetRefEntityType(TypeUsage type, out EntityType referencedEntityType) 626referencedEntityType = (EntityType)refType.ElementType;
System\Data\Metadata\TypeSemantics.cs (1)
928commonType = new RefType((EntityType)commonType);
System\Data\Objects\DataClasses\EntityCollection.cs (4)
190EntityType rootEntityType = null; 199EntityType associationEndType = (EntityType)((RefType)((AssociationEndMember)this.ToEndMember).TypeUsage.EdmType).ElementType; 200EntityType entitySetType = singleEntitySet.ElementType;
System\Data\Objects\DataClasses\RelatedEnd.cs (9)
396EntityType targetEntityType = MetadataHelper.GetEntityTypeForEnd((AssociationEndMember)_toEndProperty); 411targetEntityType = (EntityType)targetOSpaceTypeUsage.EdmType; 637private static void AppendEntitySet(StringBuilder sourceBuilder, EntitySet targetEntitySet, EntityType targetEntityType, bool ofTypeRequired) 1494EntityType entityType = constraint.ToRole.GetEntityType(); 1527EntityType entityType = constraint.ToRole.GetEntityType(); 2553EntityType entityType = _wrappedOwner.Context.MetadataWorkspace.GetItem<EntityType>(_wrappedOwner.IdentityType.FullName, DataSpace.OSpace); 2609EntityType sourceEntityType = MetadataHelper.GetEntityTypeForEnd(sourceEnd); 2616EntityType targetEntityType = MetadataHelper.GetEntityTypeForEnd(targetEnd);
System\Data\Objects\DataClasses\RelationshipManager.cs (9)
379EntityType entityType = wrappedOwner.Context.MetadataWorkspace.GetItem<EntityType>(wrappedOwner.IdentityType.FullName, DataSpace.OSpace); 492EntityType sourceEntityType = MetadataHelper.GetEntityTypeForEnd(sourceEnd); 664private bool TryGetOwnerEntityType(out EntityType entityType) 674entityType = (EntityType)objectMap.EdmType; 738private IEnumerable<AssociationEndMember> GetAllTargetEnds(EntityType ownerEntityType, EntitySet ownerEntitySet) 742EntityType end2EntityType = ((AssociationType)assocSet.ElementType).AssociationEndMembers[1].GetEntityType(); 748EntityType end1EntityType = ((AssociationType)assocSet.ElementType).AssociationEndMembers[0].GetEntityType(); 988EntityType entityType;
System\Data\Objects\EntityEntry.cs (6)
162EntityType dependentType = MetadataHelper.GetEntityTypeForEnd((AssociationEndMember)constraint.ToRole); 179EntityType dependentType = MetadataHelper.GetEntityTypeForEnd((AssociationEndMember)constraint.FromRole); 2133(metadata.CdmMetadata.EdmType as EntityType).NavigationProperties; 2253(metadata.CdmMetadata.EdmType as EntityType).NavigationProperties; 2922EntityType entityType = _cacheTypeMetadata.DataRecordInfo.RecordType.EdmType as EntityType;
System\Data\Objects\Internal\EntityProxyFactory.cs (12)
63private static ModuleBuilder GetDynamicModule(EntityType ospaceEntityType) 210internal static void TryCreateProxyTypes(IEnumerable<EntityType> ospaceEntityTypes) 221foreach (EntityType ospaceEntityType in ospaceEntityTypes) 233private static EntityProxyTypeInfo TryCreateProxyType(EntityType ospaceEntityType) 564private static bool CanProxyType(EntityType ospaceEntityType) 829public LazyLoadImplementor(EntityType ospaceEntityType) 839private void CheckType(EntityType ospaceEntityType) 1033private EntityType _ospaceEntityType; 1066public IPOCOImplementor(EntityType ospaceEntityType) 1080private void CheckType(EntityType ospaceEntityType) 1523internal DataContractImplementor(EntityType ospaceEntityType) 1562internal ISerializableImplementor(EntityType ospaceEntityType)
System\Data\Objects\Internal\LazyLoadBehavior.cs (1)
115internal static bool IsLazyLoadCandidate(EntityType ospaceEntityType, EdmMember member)
System\Data\Objects\Internal\ObjectFullSpanRewriter.cs (9)
28internal SpanPathInfo(EntityType declaringType) 36internal EntityType DeclaringType; 61EntityType entityType = null; 150private static EntityType EntityTypeFromResultType(NavigationProperty navProp) 152EntityType retType = null; 169private static bool TryGetEntityType(TypeUsage resultType, out EntityType entityType) 174entityType = (EntityType)resultType.EdmType; 184entityType = (EntityType)elementType; 205internal override SpanTrackingInfo CreateEntitySpanTrackingInfo(DbExpression expression, EntityType entityType)
System\Data\Objects\Internal\ObjectSpanRewriter.cs (7)
162internal virtual SpanTrackingInfo CreateEntitySpanTrackingInfo(DbExpression expression, EntityType entityType) { return new SpanTrackingInfo(); } 180return RewriteEntity(expression, (EntityType)expression.ResultType.EdmType); 215private DbExpression RewriteEntity(DbExpression expression, EntityType entityType) 596private List<KeyValuePair<AssociationEndMember, AssociationEndMember>> GetRelationshipSpanEnds(EntityType entityType) 658private static bool IsValidRelationshipSpan(EntityType compareType, AssociationType associationType, AssociationEndMember fromEnd, AssociationEndMember toEnd) 700EntityType fromEntityType = (EntityType)((RefType)fromEnd.TypeUsage.EdmType).ElementType;
System\Data\Objects\Internal\PocoPropertyAccessorStrategy.cs (2)
105EntityType declaringEntityType = (EntityType)relatedEnd.NavigationProperty.DeclaringType;
System\Data\Objects\ObjectContext.cs (2)
2900EntityType entityType; 2901ospaceItems.TryGetItem<EntityType>(type.FullName, out entityType);
System\Data\Objects\ObjectStateManagerMetadata.cs (1)
172keyMembers = ((EntityType)edmType).KeyMembers;
System\Data\Objects\ObjectViewFactory.cs (1)
157internal static IBindingList CreateViewForEntityCollection<TElement>(EntityType entityType, EntityCollection<TElement> entityCollection)
System\Data\Query\InternalTrees\ColumnMap.cs (6)
442private readonly Dictionary<md.EntityType, TypedColumnMap> m_typeChoices; 443private readonly Func<object[], md.EntityType> m_discriminate; 452Dictionary<md.EntityType, TypedColumnMap> typeChoices, 453Func<object[], md.EntityType> discriminate) 473internal Dictionary<md.EntityType, TypedColumnMap> TypeChoices 481internal Func<object[], md.EntityType> Discriminate
System\Data\Query\InternalTrees\ColumnMapFactory.cs (8)
46EntityType baseEntityType = baseStructuralType as EntityType; 53var mappedEntityTypes = new HashSet<EntityType>(resultMapping.MappedEntityTypes); 55Dictionary<EntityType, TypedColumnMap> typeChoices = new Dictionary<EntityType, TypedColumnMap>(mappedEntityTypes.Count); 57foreach (EntityType entityType in mappedEntityTypes) 218EntityType entityType = (EntityType)edmType;
System\Data\Query\InternalTrees\ExplicitDiscriminatorMap.cs (3)
27private readonly System.Collections.ObjectModel.ReadOnlyCollection<KeyValuePair<object, EntityType>> m_typeMap; 42internal System.Collections.ObjectModel.ReadOnlyCollection<KeyValuePair<object, EntityType>> TypeMap 67internal object GetTypeId(EntityType entityType)
System\Data\Query\PlanCompiler\ColumnMapProcessor.cs (5)
234foreach (md.EdmMember keyProperty in TypeHelpers.GetEdmType<md.EntityType>(typeInfo.Type).KeyMembers) 246EntityIdentity identity = CreateEntityIdentity((md.EntityType)typeInfo.Type.EdmType, entitySetIdColumnMap, keyColumnMapList.ToArray()); 440md.EntityType entityType = (md.EntityType)(TypeHelpers.GetEdmType<md.RefType>(typeInfo.Type).ElementType); 533private EntityIdentity CreateEntityIdentity(md.EntityType entityType,
System\Data\Query\PlanCompiler\ITreeGenerator.cs (3)
1189TypeUsage refType = TypeHelpers.CreateReferenceTypeUsage((EntityType)entityType.EdmType); 1215EntityType instanceType = (EntityType)propertyExpression.Instance.ResultType.EdmType;
System\Data\Query\PlanCompiler\NominalTypeEliminator.cs (3)
490md.EntityType entityType = null; 491if (TypeHelpers.TryGetEdmType<md.EntityType>(currentType, out entityType)) 2605md.EntityType type = op.DiscriminatorMap.TypeMap[i].Value;
System\Data\Query\PlanCompiler\PreProcessor.cs (4)
124private readonly HashSet<EntityType> m_freeFloatingEntityConstructorTypes = new HashSet<EntityType>(); 1738EntityType entityType = (EntityType)op.Type.EdmType;
System\Data\Query\PlanCompiler\PropertyPushdownHelper.cs (5)
188private static PropertyRefList GetIdentityProperties(md.EntityType type) 200private static PropertyRefList GetKeyProperties(md.EntityType entityType) 361PropertyRefList desiredProperties = GetIdentityProperties(TypeHelpers.GetEdmType<md.EntityType>(childOpType)); 397md.EntityType entityType = TypeHelpers.GetEdmType<md.EntityType>(childOp.Type);
System\Data\Query\PlanCompiler\StructuredTypeInfo.cs (14)
144HashSet<md.EntityType> freeFloatingEntityConstructorTypes, 166HashSet<md.EntityType> freeFloatingEntityConstructorTypes, 281private void AddEntityTypeToSetEntry(md.EntityType entityType, md.EntitySet entitySet) 314private void ProcessEntitySets(HashSet<md.EntitySet> referencedEntitySets, HashSet<md.EntityType> freeFloatingEntityConstructorTypes) 326foreach (md.EntityType t in freeFloatingEntityConstructorTypes) 443md.EntityTypeBase rootEntityType = GetRootType((md.EntityType)type); 522md.EntityType entityType = refType.ElementType as md.EntityType; 525md.TypeUsage baseRefType = TypeHelpers.CreateReferenceTypeUsage(entityType.BaseType as md.EntityType); 580var entityType = (md.EntityType)kv.Key.EdmType; 672md.EntityType entityType; 676entityType = refType.ElementType as md.EntityType; 680entityType = typeInfo.Type.EdmType as md.EntityType;
System\Data\SqlClient\SqlGen\DmlSqlGenerator.cs (5)
115EntityType tableType = (EntityType)((DbScanExpression)tree.Target.Expression).Target.ElementType; 279EntityType entityType = (EntityType)member.DeclaringType; 326private static void GenerateReturningSql(StringBuilder commandText, DbModificationCommandTree tree, EntityType tableType,
System.Data.Entity.Design (63)
System\Data\Entity\Design\Common\MetadataItemSerializer.cs (2)
133WriteEntityTypeElement((EntityType)type); 354private void WriteEntityTypeElement(EntityType entityType)
System\Data\Entity\Design\Common\OneToOneMappingSerializer.cs (4)
24internal Dictionary<EntityType, EntityType> StoreEntityTypeToModelEntityType = new Dictionary<EntityType, EntityType>();
System\Data\Entity\Design\EntityModelSchemaGenerator.cs (17)
417foreach (EntityType type in session.MappingLookups.StoreEntityTypeToModelEntityType.Values) 751EntityType entity = CreateModelEntityType(session, storeEntitySet.ElementType); 760private EntityType CreateModelEntityType(LoadMethodSessionState session, EntityType storeEntityType) 765EntityType foundEntity; 799var entityType = new EntityType(name, _namespaceName, DataSpace.CSpace, keyMemberNames, members); 989EntityType toType = (EntityType)storeConstraint.ToProperties[0].DeclaringType; 1032EntityType toType = (EntityType)storeConstraint.ToProperties[0].DeclaringType; 1036private static bool RequiresModelReferentialConstraint(ReferentialConstraint storeConstraint, EntityType toType) 1053EntityType entityType = (EntityType)((RefType)from.TypeUsage.EdmType).ElementType; 1064private void LoadNameLookupWithUsedMemberNames(EntityType entityType, UniqueIdentifierService usedMemberNames) 1089EntityType storeEntityType = ((EntityType)((RefType)storeEndMember.TypeUsage.EdmType).ElementType); 1090EntityType modelEntityType = session.MappingLookups.StoreEntityTypeToModelEntityType[storeEntityType];
System\Data\Entity\Design\EntityStoreSchemaGenerator.cs (16)
170foreach (EntityType type in session.GetAllEntities()) 475EntityType type 762EntityType pkEntityType; 763EntityType fkEntityType; 896out EntityType pkEntityType, 897out EntityType fkEntityType) 914EntityType entity, 937EntityType entity, 960EntityType entity, 983EntityType type, 1006EntityType pkEntityType = session.RelationshipEndTypeLookup[pkEnd]; 1007EntityType fkEntityType = session.RelationshipEndTypeLookup[fkEnd]; 1053EntityType toType = (EntityType)constraint.ToProperties[0].DeclaringType; 1251var entityType = new EntityType(typeName, _namespaceName, DataSpace.SSpace, primaryKeys, properties); 1521foreach (EntityType entityType in session.ReadOnlyEntities)
System\Data\Entity\Design\EntityStoreSchemaGenerator\EntityStoreSchemaGenerator.LoadMethodSessionState.cs (15)
27public Dictionary<EntityType, EntitySet> EntityTypeToSet = new Dictionary<EntityType, EntitySet>(); 28public Dictionary<RelationshipEndMember, EntityType> RelationshipEndTypeLookup = new Dictionary<RelationshipEndMember, EntityType>(); 30public HashSet<EntityType> ReadOnlyEntities = new HashSet<EntityType>(); 36private Dictionary<DbObjectKey, EntityType> _entityLookup = new Dictionary<DbObjectKey, EntityType>(); 37private Dictionary<EntityType, DbObjectKey> _reverseEntityLookup = new Dictionary<EntityType, DbObjectKey>(); 76EntityType type = RelationshipEndTypeLookup[end]; 80public void AddEntity(DbObjectKey key, EntityType type) 86public IEnumerable<EntityType> GetAllEntities() 91public bool TryGetEntity(DbObjectKey key, out EntityType type) 116public DbObjectKey GetKey(EntityType type)
System\Data\EntityModel\Emitters\EntityTypeEmitter.cs (3)
31public EntityTypeEmitter(ClientApiGenerator generator, EntityType entity) 115public new EntityType Item 119return base.Item as EntityType;
System\Data\EntityModel\Emitters\MetadataItemEmitter.cs (1)
84protected static MemberAttributes GetEntityTypeAccessibility(EntityType item)
System\Data\EntityModel\Emitters\NamespaceEmitter.cs (2)
33new Pair<Type,CreateEmitter>(typeof(EntityType), delegate (ClientApiGenerator generator, GlobalItem element) { return new EntityTypeEmitter(generator,(EntityType)element); }),
System\Data\EntityModel\Emitters\PropertyEmitter.cs (2)
677EntityType entity = Item.DeclaringType as EntityType;
System\Data\EntityModel\Emitters\Utils.cs (1)
90typeReservedNames.Add(member.Name, typeof(EntityType));
System.Data.Services (20)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (20)
117EntityType sourceEntityType = this.ObjectContext.MetadataWorkspace.GetItem<EntityType>(resourceType.FullName, DataSpace.CSpace); 124Debug.Assert(sourceEntityType == (EntityType)sourceNavigationProperty.DeclaringType, "sourceEntityType == (EntityType)sourceNavigationProperty.DeclaringType"); 149EntityType targetEntityType = (EntityType)((RefType)sourceNavigationProperty.ToEndMember.TypeUsage.EdmType).ElementType; 730EntityType entityType = this.ObjectContext.MetadataWorkspace.GetItem<EntityType>(resourceType.FullName, DataSpace.CSpace); 1008foreach (EntityType type in workspace.GetItems<EntityType>(DataSpace.CSpace)) 1058private static IEnumerable<EntitySet> GetEntitySetsForType(MetadataWorkspace workspace, EntityType type) 1195private static bool IsAssignableFrom(EntityType baseType, EntityType derivedType) 1204derivedType = (EntityType)derivedType.BaseType; 1409((EntityType)edmType).KeyMembers.Contains(member)) 1429Type propertyClrType = GetClrTypeForCSpaceType(workspace, (EntityType)((CollectionType)member.TypeUsage.EdmType).TypeUsage.EdmType); 1815WriteEntityType(xmlWriter, (EntityType)edmType, metadataManager); 1836private static void WriteEntityType(XmlWriter xmlWriter, EntityType entityType, MetadataManager metadataManager) 2399EntityType cspaceEntityType = this.ObjectContext.MetadataWorkspace.GetItem<EntityType>(resourceType.FullName, DataSpace.CSpace); 2787this.edmTypes[resultType.Namespace].Contains(this.workspace.GetItem<EntityType>(resultType.FullName, DataSpace.CSpace))),
System.Data.Services.Design (11)
System\Data\EntityModel\Emitters\AttributeEmitter.cs (2)
355private void EmitEpmAttributesForEntityType(EdmItemCollection itemCollection, EntityType entityType, CodeTypeDeclaration typeDecl) 519private void EmitStreamAttributesForEntityType(EntityType entityType, CodeTypeDeclaration typeDecl)
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (3)
722EntitySetBase entitySet = this.GetUniqueEntitySetForType((EntityType)eventArgs.TypeSource); 736if (this.GetSourceTypes().Where(x => x.BuiltInTypeKind == BuiltInTypeKind.EntityType).Where(x => ((EntityType)x).Name == eventArgs.BaseType.BaseType).Count() != 0) 838private EntitySetBase GetUniqueEntitySetForType(EntityType entityType)
System\Data\EntityModel\Emitters\EntityTypeEmitter.cs (3)
26public EntityTypeEmitter(ClientApiGenerator generator, EntityType entity) 112public new EntityType Item 116return base.Item as EntityType;
System\Data\EntityModel\Emitters\MetadataItemEmitter.cs (1)
77protected static MemberAttributes GetEntityTypeAccessibility(EntityType item)
System\Data\EntityModel\Emitters\NamespaceEmitter.cs (2)
26(new Pair<Type,CreateEmitter>(typeof(EntityType), delegate (ClientApiGenerator generator1, GlobalItem element) { return new EntityTypeEmitter(generator1,(EntityType)element); })),
System.Web.DynamicData (24)
DynamicData\ModelProviders\EFAssociationProvider.cs (4)
17EntityType otherEntityType = navigationProperty.ToEndMember.GetEntityType(); 31EntityType value = (EntityType)navigationProperty.ToEndMember.TypeUsage.EdmType.MetadataProperties.Single(prop => prop.Name == "ElementType").Value; 94internal static long BuildRelationshipKey(EntityType entityType, RelationshipEndMember member) {
DynamicData\ModelProviders\EFColumnProvider.cs (3)
15public EFColumnProvider(EntityType entityType, EFTableProvider table, EdmMember m, bool isPrimaryKey) 99if (edmType is EntityType) { 147return edmType is EntityType || edmType is CollectionType || edmType is PrimitiveType || edmType is EnumType;
DynamicData\ModelProviders\EFDataModelProvider.cs (16)
14internal Dictionary<EntityType, EFTableProvider> TableEndLookup { get; private set; } 23TableEndLookup = new Dictionary<EntityType, EFTableProvider>(); 37IDictionary<EntityType, EntitySet> entitySetLookup = container.BaseEntitySets.OfType<EntitySet>().ToDictionary(e => e.ElementType); 40ILookup<EntityType, EntityType> derivedTypesLookup = _context.MetadataWorkspace.GetItems<EntityType>(DataSpace.CSpace).ToLookup(e => (EntityType)e.BaseType); 51var objectStack = new Stack<EntityType>(); 55EntityType entityType = objectStack.Pop(); 66foreach (EntityType derivedEntityType in derivedTypesLookup[entityType]) { 96private Type GetClrType(EntityType entityType) { 97var objectSpaceType = (EntityType)_context.MetadataWorkspace.GetObjectSpaceType(entityType); 101private TableProvider CreateTableProvider(EntitySet entitySet, EntityType entityType) { 104EntityType parentEntityType = entityType.BaseType as EntityType;
DynamicData\ModelProviders\EFTableProvider.cs (1)
12public EFTableProvider(EFDataModelProvider dataModel, EntitySet entitySet, EntityType entityType,
System.Web.Entity (40)
System\Data\WebControls\EntityDataSourceMemberPath.cs (2)
191EntityType entityType = property.DeclaringType as EntityType;
System\Data\WebControls\EntityDataSourceUtil.cs (21)
67members = ((EntityType)(tu.EdmType)).Members; 77if ( ((EntityType)(entitySet.ElementType)).Members.Contains(propertyName) ) 180internal static void CheckNonPolymorphicTypeUsage(EntityType entityType, 199internal static IEnumerable<EdmType> GetTypeAndSubtypesOf(EntityType type, ReadOnlyCollection<GlobalItem> itemCollection, bool includeAbstractTypes) 207foreach (EdmType subType in GetTypeAndSubtypesOf<EntityType>(type, itemCollection, includeAbstractTypes)) 219internal static bool IsTypeOrSubtypeOf(EntityType superType, EntityType derivedType, ReadOnlyCollection<GlobalItem> itemCollection) 754internal static IEnumerable<AssociationSetEnd> GetReferenceEnds(EntitySet entitySet, EntityType entityType, bool forKey) 807EntityType entityType = GetEntityType(GetOppositeEnd(end)); 828private static bool IsReferenceEnd(EntitySet entitySet, EntityType entityType, AssociationSetEnd fromEnd, AssociationSetEnd toEnd, bool forKey) 830EntityType fromType = GetEntityType(fromEnd); 857internal static EntityType GetEntityType(AssociationSetEnd end) 862internal static EntityType GetEntityType(AssociationEndMember end) 864EntityType entityType = (EntityType)((RefType)end.TypeUsage.EdmType).ElementType; 908EntitySet entitySet, EntityType entityType) 939private static ReadOnlyCollection<EdmMember> GetInterestingMembers(MetadataWorkspace csWorkspace, EntitySet entitySet, EntityType entityType) 957private static IEnumerable<EntityDataSourceColumn> GetColumns(EntitySet entitySet, EntityType entityType, 1005private static void AddReferenceNavigationColumns(List<EntityDataSourceColumn> columns, MetadataWorkspace ocWorkspace, EntitySet entitySet, EntityType entityType) 1020private static void AddReferenceKeyColumns(List<EntityDataSourceColumn> columns, MetadataWorkspace ocWorkspace, EntitySet entitySet, EntityType entityType, Dictionary<EdmProperty, EntityDataSourcePropertyColumn> entityProperties) 1028EntityType toType = EntityDataSourceUtil.GetEntityType(toEnd);
System\Data\WebControls\EntityDataSourceView.cs (13)
117public void CreateCollection(ObjectContext context, EntitySet entitySet, EntityType CSpaceFilteredEntityType, ManagerMode mode) 302EntityType newOSpaceType = workspace.GetItem<EntityType>(elementType.FullName, DataSpace.OSpace); 303EntityType newCSpaceType = (EntityType)workspace.GetEdmSpaceType((StructuralType)newOSpaceType); 762EntityType entityType = Context.MetadataWorkspace.GetObjectSpaceType(CSpaceFilteredEntityType ?? EntitySet.ElementType) as EntityType; 1469private EntityType CSpaceFilteredEntityType 1473EntityType cSpaceType = null; 1482cSpaceType = (EntityType)Context.MetadataWorkspace.GetType(_owner.EntityTypeFilter, EntitySet.ElementType.NamespaceName, DataSpace.CSpace); 1497private EntityType EntityCSpaceType 1501EntityType cSpaceType = CSpaceFilteredEntityType; 1570_keyMembers = ((EntityType)(entitySet.ElementType)).KeyMembers;
System\Data\WebControls\EntityDataSourceWrapperCollection.cs (2)
57internal EntityDataSourceWrapperCollection(ObjectContext context, EntitySet entitySet, EntityType restrictedEntityType) 70EntityType entityType = restrictedEntityType ?? entitySet.ElementType;
System\Data\WebControls\OrderByBuilder.cs (2)
231EntityType entityType = tu.EdmType as EntityType;
System.Web.Entity.Design (21)
System\Data\WebControls\Design\EntityDataSourceDataSelection.cs (4)
307EntityType entityType = GetSelectedEntityType(); 576private EntityType GetSelectedEntityType() 578EntityType entityType = null; 602EntityType entityType = GetSelectedEntityType();
System\Data\WebControls\Design\EntityDataSourceDesignerHelper.cs (14)
1377internal List<string> GetEntityTypeProperties(EntityType entityType) 1394EntityType baseEntitySetType = null; 1410internal List<EntityDataSourceEntityTypeFilterItem> GetEntityTypeFilters(EntityType baseEntitySetType, bool sortResults) 1416foreach (EntityType entityType in GetTypeAndSubtypesOf(baseEntitySetType, this.EdmItemCollection)) 1430private static IEnumerable<EntityType> GetTypeAndSubtypesOf(EntityType entityType, EdmItemCollection itemCollection) 1436IEnumerable<EntityType> entityTypesInCollection = itemCollection.OfType<EntityType>(); 1437foreach (EntityType typeInCollection in entityTypesInCollection) 1452private static bool IsStrictSubtypeOf(EntityType firstType, EntityType secondType) 1461for (EntityType t = (EntityType)firstType.BaseType; t != null; t = (EntityType)t.BaseType)
System\Data\WebControls\Design\EntityDataSourceEntityTypeFilterItem.cs (3)
18private readonly EntityType _entityType; // used when we have a real EntityType backing this item 21internal EntityDataSourceEntityTypeFilterItem(EntityType entityType) 46internal EntityType EntityType