3 types derived from StructuralType
System.Data.Entity (3)
System\Data\Metadata\Edm\ComplexType.cs (1)
18public class ComplexType : StructuralType
System\Data\Metadata\Edm\EntityTypeBase.cs (1)
18public abstract class EntityTypeBase : StructuralType
System\Data\Metadata\Edm\RowType.cs (1)
23public sealed class RowType : StructuralType
250 references to StructuralType
System.Data.Entity (190)
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (4)
1618StructuralType structType = instanceType.EdmType as StructuralType; 1714StructuralType structType; 1715if (TypeHelpers.TryGetEdmType<StructuralType>(instance.ResultType, out structType))
System\Data\Common\CommandTrees\Internal\ExpressionCopier.cs (2)
202StructuralType declType = instance.ResultType.EdmType as StructuralType;
System\Data\Common\DataRecord.cs (2)
475_propertyDescriptors = CreatePropertyDescriptorCollection(this.DataRecordInfo.RecordType.EdmType as StructuralType, 490internal static PropertyDescriptorCollection CreatePropertyDescriptorCollection(StructuralType structuralType, Type componentType, bool isReadOnly)
System\Data\Common\EntitySql\SemanticAnalyzer.cs (2)
1340StructuralType stype = (StructuralType)type.EdmType;
System\Data\Common\EntitySql\SemanticResolver.cs (1)
622if (TypeResolver.Perspective.TryGetMember((StructuralType)valueExpr.ResultType.EdmType, name, _parserOptions.NameComparisonCaseInsensitive /*ignoreCase*/, out member))
System\Data\Common\Utils\MetadataHelper.cs (4)
35|| typeof(StructuralType).Equals(typeof(T)) && resultType is StructuralType 187internal static bool DoesMemberExist(StructuralType type, EdmMember member) 749foreach (StructuralType type in GetTypeAndSubtypesOf(superType, edmItemCollection, true /*includeAbstractTypes */ ))
System\Data\EntityClient\EntityCommandDefinition.cs (4)
165StructuralType baseStructuralType; 169if (MetadataHelper.TryGetFunctionImportReturnType<StructuralType>(functionImport, resultSetIndex, out baseStructuralType)) 600private readonly StructuralType _baseStructuralType; 603internal FunctionColumnMapGenerator(FunctionImportMappingNonComposable mapping, int resultSetIndex, EntitySet entitySet, StructuralType baseStructuralType)
System\Data\Mapping\DefaultObjectMappingItemCollection.cs (7)
490private static EdmMember GetObjectMember(EdmMember edmMember, StructuralType objectType) 614StructuralType cdmStructuralType = (StructuralType)edmType; 615StructuralType objectStructuralType = (StructuralType)objectType; 661private static void ValidateAllMembersAreMapped(StructuralType cdmStructuralType, StructuralType objectStructuralType)
System\Data\Mapping\FunctionImportMapping.ReturnTypeRenameMapping.cs (8)
162internal readonly StructuralType Type; 167internal FunctionImportReturnTypeStructuralTypeColumn(string columnName, StructuralType type, bool isTypeOf, LineInfo lineInfo) 184private Memoizer<StructuralType, FunctionImportReturnTypeStructuralTypeColumn> _renameCache; 191this._renameCache = new Memoizer<StructuralType, FunctionImportReturnTypeStructuralTypeColumn>( 192this.GetRename, EqualityComparer<StructuralType>.Default); 214Debug.Assert(type is StructuralType, "we can only rename structural type"); 217var rename = this._renameCache.Evaluate(type as StructuralType); 222private FunctionImportReturnTypeStructuralTypeColumn GetRename(StructuralType typeForRename)
System\Data\Mapping\FunctionImportMappingComposable.cs (5)
33List<Tuple<StructuralType, List<StorageConditionPropertyMapping>, List<StoragePropertyMapping>>> structuralTypeMappings, 74private readonly List<Tuple<StructuralType, List<StorageConditionPropertyMapping>, List<StoragePropertyMapping>>> m_structuralTypeMappings; 286var type = mapping.Item1; 320var type = mapping.Item1; 357private DbExpression GenerateStructuralTypeMappingView(StructuralType structuralType, List<StoragePropertyMapping> propertyMappings, DbExpression row, IList<EdmSchemaError> errors)
System\Data\Mapping\FunctionImportMappingNonComposable.cs (6)
180IEnumerable<StructuralType> structuralTypes; 184StructuralType structuralType; 185MetadataHelper.TryGetFunctionImportReturnType<StructuralType>(this.FunctionImport, resultSetIndex, out structuralType); 187structuralTypes = new StructuralType[] { structuralType }; 192structuralTypes = resultMapping.MappedEntityTypes.Cast<StructuralType>(); 196foreach (StructuralType structuralType in structuralTypes)
System\Data\Mapping\ObjectTypeMapping.cs (1)
35m_memberMapping = new Dictionary<string, ObjectMemberMapping>(((StructuralType)cdmType).Members.Count);
System\Data\Mapping\StorageMappingItemLoader.cs (22)
1615(StructuralType)resultType, 1927if (!LoadFunctionImportStructuralType(nav.Clone(), new List<StructuralType>() { complexType }, columnRenameMappings, null)) 1982IEnumerable<StructuralType> currentTypesInHierachy = isOfTypeEntityTypes.Concat(entityTypes).Distinct().OfType<StructuralType>(); 1999IEnumerable<StructuralType> currentTypes, 2048IEnumerable<StructuralType> currentTypes) 2081StructuralType structuralResultType, 2093StructuralType resultType; 2094if (MetadataHelper.TryGetFunctionImportReturnType<StructuralType>(functionImport, 0, out resultType)) 2126var structuralTypeMappings = new List<Tuple<StructuralType, List<StorageConditionPropertyMapping>, List<StoragePropertyMapping>>>(); 2149structuralTypeMappings.Add(Tuple.Create((StructuralType)functionImportKB.MappedEntityTypes[i], typeConditions, propertyMappings)); 2177structuralTypeMappings.Add(Tuple.Create((StructuralType)resultComplexType, new List<StorageConditionPropertyMapping>(), propertyMappings)); 2199internal static bool TryInferTVFKeys(List<Tuple<StructuralType, List<StorageConditionPropertyMapping>, List<StoragePropertyMapping>>> structuralTypeMappings, out EdmProperty[] keys) 2439StructuralType structuralType, 2856(containerType as StructuralType).Members.TryGetValue(propertyName, false, out tempMember); 2918StructuralType containerStructuralType = containerType as StructuralType; 3211((StructuralType)containerType).Members.TryGetValue(propertyName, false /*ignoreCase*/, out tempMember); 3882private IEnumerable<StorageModificationFunctionParameterBinding> LoadParameterBindings(XPathNavigator nav, StructuralType type) 3906private IEnumerable<StorageModificationFunctionParameterBinding> LoadParameterBindings(XPathNavigator nav, StructuralType type, 4111private EdmMember LoadComplexTypeProperty(XPathNavigator nav, StructuralType type, out ComplexType complexType) 4161private StorageModificationFunctionParameterBinding LoadScalarPropertyParameterBinding(XPathNavigator nav, StructuralType type, bool restrictToKeyMembers)
System\Data\Mapping\Update\Internal\ExtractorMetadata.cs (4)
43internal ExtractorMetadata(EntitySetBase entitySetBase, StructuralType type, UpdateTranslator translator) 115private readonly StructuralType m_type; 303StructuralType structuralType = (StructuralType)record.DataRecordInfo.RecordType.EdmType;
System\Data\Mapping\Update\Internal\Propagator.cs (1)
273PropagatorResult projectedRow = PropagatorResult.CreateStructuralValue(projectedValues, (StructuralType)resultType.EdmType, false);
System\Data\Mapping\Update\Internal\Propagator.ExtentPlaceholderCreator.cs (2)
223StructuralType structuralType = (StructuralType)nodeType.EdmType;
System\Data\Mapping\Update\Internal\Propagator.JoinPropagator.cs (1)
418PropagatorResult join = PropagatorResult.CreateStructuralValue(joinRecordValues, (StructuralType)result.ElementType.EdmType, false);
System\Data\Mapping\Update\Internal\PropagatorResult.cs (6)
101internal virtual StructuralType StructuralType 502internal static PropagatorResult CreateStructuralValue(PropagatorResult[] values, StructuralType structuralType, bool isModified) 515internal StructuralValue(PropagatorResult[] values, StructuralType structuralType) 526protected readonly StructuralType m_structuralType; 538internal override StructuralType StructuralType 583internal UnmodifiedStructuralValue(PropagatorResult[] values, StructuralType structuralType)
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (3)
76m_extractorMetadata = new Dictionary<Tuple<EntitySetBase, StructuralType>, ExtractorMetadata>(); ; 111private readonly Dictionary<Tuple<EntitySetBase, StructuralType>, ExtractorMetadata> m_extractorMetadata; 743internal ExtractorMetadata GetExtractorMetadata(EntitySetBase entitySetBase, StructuralType type)
System\Data\Mapping\ViewGeneration\QueryRewriting\FragmentQueryKB.cs (2)
175StructuralType structuralType = (StructuralType)possibleType;
System\Data\Mapping\ViewGeneration\Structures\CellQuery.cs (1)
898StructuralType st = jtn.MemberPath.LeafEdmMember.DeclaringType;
System\Data\Mapping\ViewGeneration\Structures\MemberPath.cs (5)
468internal void AsCql(Action<string> accessMember, Action getKey, Action<StructuralType> treatAs) 476StructuralType prevStructuralType; 486prevStructuralType = (StructuralType)prevType; 566StructuralType structuralType = (StructuralType)edmType;
System\Data\Mapping\ViewGeneration\Structures\MemberProjectionIndex.cs (3)
212StructuralType possibleStructuralType = possibleType as StructuralType; 228StructuralType possibleType,
System\Data\Mapping\ViewGeneration\Structures\TypeConstant.cs (1)
192Debug.Assert(m_edmType is StructuralType, "m_edmType must be a structural type.");
System\Data\Mapping\ViewValidator.cs (2)
367StructuralType structuralType = (expression.ResultType.EdmType as StructuralType);
System\Data\Metadata\ClrPerspective.cs (1)
62internal override bool TryGetMember(StructuralType type, String memberName, bool ignoreCase, out EdmMember outMember)
System\Data\Metadata\Edm\EdmMember.cs (3)
38private StructuralType _declaringType; 66public StructuralType DeclaringType 114internal void ChangeDeclaringTypeWithoutCollectionFixup(StructuralType newDeclaringType)
System\Data\Metadata\Edm\MemberCollection.cs (11)
47public MemberCollection(StructuralType declaringType) 58public MemberCollection(StructuralType declaringType, IEnumerable<EdmMember> items) 67private StructuralType _declaringType; 108return ((StructuralType)_declaringType.BaseType).Members[index]; 172if (baseType != null && ((StructuralType)baseType).Members.Contains(identity)) 196StructuralType baseType = _declaringType.BaseType as StructuralType; 231((StructuralType)_declaringType.BaseType).Members.CopyTo(array, arrayIndex); 254((StructuralType)baseType).Members.TryGetValue(identity, ignoreCase, out item); 305StructuralType baseType = _declaringType.BaseType as StructuralType;
System\Data\Metadata\EdmValidator.cs (1)
516private void ValidateStructuralType(StructuralType item, List<EdmItemError> errors, HashSet<MetadataItem> validatedItems)
System\Data\Metadata\MetadataWorkspace.cs (16)
942public StructuralType GetObjectSpaceType(StructuralType edmSpaceType) 944return GetObjectSpaceType<StructuralType>(edmSpaceType); 957public bool TryGetObjectSpaceType(StructuralType edmSpaceType, out StructuralType objectSpaceType) 959return TryGetObjectSpaceType<StructuralType>(edmSpaceType, out objectSpaceType); 1002edmSpaceType == null || edmSpaceType is StructuralType || edmSpaceType is EnumType, 1028edmSpaceType == null || edmSpaceType is StructuralType || edmSpaceType is EnumType, 1061public StructuralType GetEdmSpaceType(StructuralType objectSpaceType) 1063return GetEdmSpaceType<StructuralType>(objectSpaceType); 1075public bool TryGetEdmSpaceType(StructuralType objectSpaceType, out StructuralType edmSpaceType) 1077return TryGetEdmSpaceType<StructuralType>(objectSpaceType, out edmSpaceType); 1119objectSpaceType == null || objectSpaceType is StructuralType || objectSpaceType is EnumType, 1144objectSpaceType == null || objectSpaceType is StructuralType || objectSpaceType is EnumType,
System\Data\Metadata\ObjectItemCollection.cs (4)
448public Type GetClrType(StructuralType objectSpaceType) 461public bool TryGetClrType(StructuralType objectSpaceType, out Type clrType) 498Debug.Assert(objectSpaceType == null || objectSpaceType is StructuralType || objectSpaceType is EnumType, 520Debug.Assert(objectSpaceType == null || objectSpaceType is StructuralType || objectSpaceType is EnumType,
System\Data\Metadata\ObjectLayer\ObjectItemAttributeAssemblyLoader.cs (5)
357LoadPropertiesFromType((StructuralType)edmType); 451private void LoadPropertiesFromType(StructuralType structuralType) 515internal void ResolveNavigationProperty(StructuralType declaringType, PropertyInfo propertyInfo) 654private void ResolveEnumTypeProperty(StructuralType declaringType, PropertyInfo clrProperty) 692private void ResolveComplexTypeProperty(StructuralType type, PropertyInfo clrProperty)
System\Data\Metadata\ObjectLayer\ObjectItemConventionAssemblyLoader.cs (40)
51Debug.Assert(ospaceType is StructuralType || Helper.IsEnumType(ospaceType), "Only StructuralType or EnumType expected."); 120Debug.Assert(cspaceType is StructuralType || Helper.IsEnumType(cspaceType), "Structural or enum type expected"); 139Debug.Assert(cspaceType is StructuralType); 140return TryCreateStructuralType(type, (StructuralType)cspaceType, out newOSpaceType); 151private bool TryCreateStructuralType(Type type, StructuralType cspaceType, out EdmType newOSpaceType) 160StructuralType ospaceType; 177() => ospaceType.BaseType = ResolveBaseType((StructuralType)cspaceType.BaseType, type)); 188if (!TryCreateMembers(type, (StructuralType)cspaceType, ospaceType, referenceResolutionListForCurrentType)) 335private EdmType ResolveBaseType(StructuralType baseCSpaceType, Type type) 348Debug.Assert(!foundValue || ospaceType is StructuralType, "Structural type expected (if found)."); 353private bool TryCreateMembers(Type type, StructuralType cspaceType, StructuralType ospaceType, List<Action> referenceResolutionListForCurrentType) 383private bool TryFindComplexProperties(Type type, StructuralType cspaceType, StructuralType ospaceType, PropertyInfo[] clrProperties, List<Action> referenceResolutionListForCurrentType) 408var ot = ospaceType; 417private bool TryFindNavigationProperties(Type type, StructuralType cspaceType, StructuralType ospaceType, PropertyInfo[] clrProperties, List<Action> referenceResolutionListForCurrentType) 448var ct = cspaceType; 449var ot = ospaceType; 485private void CreateAndAddComplexType(Type type, StructuralType ospaceType, EdmProperty cspaceProperty, PropertyInfo clrProperty) 488if (SessionData.CspaceToOspace.TryGetValue((StructuralType)cspaceProperty.TypeUsage.EdmType, out propertyType)) 490Debug.Assert(propertyType is StructuralType, "Structural type expected."); 506private void CreateAndAddNavigationProperty(StructuralType cspaceType, StructuralType ospaceType, NavigationProperty cspaceProperty, PropertyInfo clrProperty) 511Debug.Assert(ospaceRelationship is StructuralType, "Structural type expected."); 518foundTarget = SessionData.CspaceToOspace.TryGetValue((StructuralType)((CollectionType)cspaceProperty.TypeUsage.EdmType).TypeUsage.EdmType, out findType); 521Debug.Assert(findType is StructuralType, "Structural type expected."); 529foundTarget = SessionData.CspaceToOspace.TryGetValue((StructuralType)cspaceProperty.TypeUsage.EdmType, out findType); 532Debug.Assert(findType is StructuralType, "Structural type expected."); 561private bool TryFindAndCreatePrimitiveProperties(Type type, StructuralType cspaceType, StructuralType ospaceType, PropertyInfo[] clrProperties) 599private bool TryFindAndCreateEnumProperties(Type type, StructuralType cspaceType, StructuralType ospaceType, PropertyInfo[] clrProperties, List<Action> referenceResolutionListForCurrentType) 622var ot = ospaceType; 638private void CreateAndAddEnumProperty(Type type, StructuralType ospaceType, EdmProperty cspaceProperty, PropertyInfo clrProperty) 693Debug.Assert(ospaceEndTypes[0] is StructuralType); 694Debug.Assert(ospaceEndTypes[1] is StructuralType); 714private static StructuralType GetRelationshipEndType(RelationshipEndMember relationshipEndMember) 739private void AddScalarMember(Type type, PropertyInfo clrProperty, StructuralType ospaceType, EdmProperty cspaceProperty, EdmType propertyType) 749var cspaceType = cspaceProperty.DeclaringType;
System\Data\Metadata\ObjectLayer\ObjectItemLoadingSessionData.cs (4)
82if ((edmType is StructuralType && edmType.BuiltInTypeKind != BuiltInTypeKind.AssociationType) || Helper.IsEnumType(edmType)) 154_cspaceToOspace.Add(_edmItemCollection.GetItem<StructuralType>(entityType.CSpaceTypeName), entityType); 159_cspaceToOspace.Add(_edmItemCollection.GetItem<StructuralType>(complexType.CSpaceTypeName), complexType); 169_cspaceToOspace.Add(_edmItemCollection.GetItem<StructuralType>(type.FullName), type);
System\Data\Metadata\Perspective.cs (1)
56internal virtual bool TryGetMember(StructuralType type, String memberName, bool ignoreCase, out EdmMember outMember)
System\Data\Objects\ELinq\Translator.cs (2)
304StructuralType structuralType = definingType.EdmType as StructuralType;
System\Data\Query\InternalTrees\ColumnMapFactory.cs (1)
33internal static CollectionColumnMap CreateFunctionImportStructuralTypeColumnMap(DbDataReader storeDataReader, FunctionImportMappingNonComposable mapping, int resultSetIndex, EntitySet entitySet, StructuralType baseStructuralType)
System\Data\Query\PlanCompiler\ITreeGenerator.cs (2)
2073StructuralType resultType = TypeHelpers.GetEdmType<StructuralType>(e.ResultType);
System.Data.Entity.Design (12)
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (2)
130StructuralType structuralReturnType = returnType as StructuralType;
System\Data\EntityModel\Emitters\NamespaceEmitter.cs (1)
135return TryAddNameToCache((element as StructuralType).Name, element.BuiltInTypeKind.ToString(), cache);
System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (1)
275internal static bool IsNameAlreadyAMemberName(StructuralType type, string generatedPropertyName, StringComparison comparison)
System\Data\EntityModel\Emitters\PropertyEmitter.cs (2)
557StructuralType parentBaseClass = Item.DeclaringType.BaseType as StructuralType;
System\Data\EntityModel\Emitters\PropertyEmitterBase.cs (2)
87StructuralType baseType = Item.DeclaringType.BaseType as StructuralType;
System\Data\EntityModel\Emitters\StructuredTypeEmitter.cs (3)
106protected StructuredTypeEmitter(ClientApiGenerator generator, StructuralType structuralType) 247internal new StructuralType Item 251return base.Item as StructuralType;
System\Data\EntityModel\Emitters\Utils.cs (1)
336public static bool DoesTypeReserveMemberName(StructuralType type, string name, StringComparison comparison)
System.Data.Services (20)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (20)
56private List<StructuralType> typesWithoutOSpaceMetadata; 68this.typesWithoutOSpaceMetadata = new List<StructuralType>(); 854foreach (StructuralType edmType in metadataWorkspace.GetItems<StructuralType>(DataSpace.CSpace)) 967StructuralType ospaceType, cspaceType; 968if (objectItemCollection.TryGetItem<StructuralType>(type.FullName, out ospaceType)) 1034private static Type GetClrTypeForCSpaceType(MetadataWorkspace workspace, StructuralType edmType) 1042StructuralType ospaceType; 1115private static bool GetDefaultStreamPropertyFromEntityTypeHierarchy(StructuralType type) 1124type = type.BaseType as StructuralType; 1133private static bool GetEntityTypeDefaultStreamProperty(StructuralType type) 1305StructuralType edmType, 1321baseType = PopulateTypeMetadata(workspace, (StructuralType)edmType.BaseType, knownTypes, childTypes); 1340StructuralType cspaceType, 1386StructuralType edmType = workspace.GetItem<StructuralType>(resourceType.FullName, DataSpace.CSpace); 1725private static void WriteMembers(XmlWriter xmlWriter, StructuralType declaringType, MetadataManager metadataManager) 2095StructuralType edmType = workspace.GetItem<StructuralType>(baseResourceType.FullName, DataSpace.CSpace); 2583internal IEnumerable<EdmMember> GetPropertiesDeclaredInThisType(StructuralType declaringType)
System.Data.Services.Design (20)
System\Data\EntityModel\Emitters\AttributeEmitter.cs (9)
198private static bool IsOpenType(StructuralType entityType) 223bool IsOpenPropertyOnPath(StructuralType baseEntityType, String sourcePath) 238return IsOpenPropertyOnPath(baseEntityType.BaseType as StructuralType, sourcePath); 247StructuralType entityPropertyType = entityProperty.TypeUsage.EdmType as StructuralType; 265private static EdmMember GetEntityPropertyFromEpmPath(StructuralType baseEntityType, String sourcePath) 273return baseEntityType.BaseType != null ? GetEntityPropertyFromEpmPath(baseEntityType.BaseType as StructuralType, sourcePath) : null; 292baseEntityType = entityProperty.TypeUsage.EdmType as StructuralType; 402if (IsOpenPropertyOnPath(entityProperty.TypeUsage.EdmType as StructuralType, originalPath))
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (1)
80var q = from a in this.Generator.EdmItemCollection.GetItems<StructuralType>()
System\Data\EntityModel\Emitters\NamespaceEmitter.cs (1)
185return TryAddNameToCache((element as StructuralType).Name, element.BuiltInTypeKind.ToString(), cache);
System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (1)
276internal static bool IsNameAlreadyAMemberName(StructuralType type, string generatedPropertyName, StringComparison comparison)
System\Data\EntityModel\Emitters\PropertyEmitter.cs (2)
476StructuralType parentBaseClass = Item.DeclaringType.BaseType as StructuralType;
System\Data\EntityModel\Emitters\PropertyEmitterBase.cs (2)
82StructuralType baseType = Item.DeclaringType.BaseType as StructuralType;
System\Data\EntityModel\Emitters\StructuredTypeEmitter.cs (3)
97protected StructuredTypeEmitter(ClientApiGenerator generator, StructuralType structuralType) 248internal new StructuralType Item 252return base.Item as StructuralType;
System\Data\EntityModel\Emitters\Utils.cs (1)
316public static bool DoesTypeReserveMemberName(StructuralType type, string name, StringComparison comparison)
System.Web.Entity (8)
System\Data\WebControls\EntityDataSourceMemberPath.cs (1)
49StructuralType parentType = property.DeclaringType;
System\Data\WebControls\EntityDataSourceUtil.cs (4)
232internal static Type GetClrType(MetadataWorkspace ocWorkspace, StructuralType edmType) 234var oSpaceType = (StructuralType)ocWorkspace.GetObjectSpaceType(edmType); 732clrType = GetClrType(ocWorkspace, (StructuralType)memberType);
System\Data\WebControls\EntityDataSourceView.cs (3)
303EntityType newCSpaceType = (EntityType)workspace.GetEdmSpaceType((StructuralType)newOSpaceType); 1452private StructuralType EntityOSpaceType 1462StructuralType oSpaceType = Context.MetadataWorkspace.GetObjectSpaceType(EntityCSpaceType);