131 references to Members
System.Data.Entity (101)
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (1)
1720if (structType.Members.TryGetValue(propertyName, ignoreCase, out foundMember) &&
System\Data\Common\CommandTrees\Internal\ExpressionCopier.cs (1)
206if (declType.Members.TryGetValue(memberName, false, out foundMember))
System\Data\Common\CommandTrees\Internal\ViewSimplifier.cs (2)
642for (int ordinal = 0; ordinal < innerResultType.Members.Count; ordinal++) 644bindings[innerResultType.Members[ordinal].Name] = innerNew.Arguments[ordinal];
System\Data\Common\DataRecord.cs (1)
495foreach (EdmMember member in structuralType.Members)
System\Data\Common\EntitySql\CqlErrorHelper.cs (10)
119if (leftRow.Members.Count != rightRow.Members.Count) 139for (int i = 0 ; i < leftRow.Members.Count ; i++) 141ReportIncompatibleCommonType(errCtx, rootLeftType, rootRightType, leftRow.Members[i].TypeUsage, rightRow.Members[i].TypeUsage); 178if (leftComplex.Members.Count != rightComplex.Members.Count) 197for (int i = 0 ; i < leftComplex.Members.Count ; i++) 202leftComplex.Members[i].TypeUsage, 203rightComplex.Members[i].TypeUsage);
System\Data\Common\EntitySql\SemanticAnalyzer.cs (13)
1586toEnd = (RelationshipEndMember)relationshipType.Members.FirstOrDefault(m => m.Name.Equals(relshipExpr.ToEndIdentifier.Name, StringComparison.OrdinalIgnoreCase)); 1606var toEndCandidates = relationshipType.Members.Select(m => (RelationshipEndMember)m) 1629fromEnd = (RelationshipEndMember)relationshipType.Members.FirstOrDefault(m => m.Name.Equals(relshipExpr.FromEndIdentifier.Name, StringComparison.OrdinalIgnoreCase)); 1646var fromEndCandidates = relationshipType.Members.Select(m => (RelationshipEndMember)m) 1712toEnd = (RelationshipEndMember)relationshipType.Members.FirstOrDefault(m => m.Name.Equals(relshipExpr.ToEndIdentifier.Name, StringComparison.OrdinalIgnoreCase)); 1729fromEnd = (RelationshipEndMember)relationshipType.Members.FirstOrDefault(m => m.Name.Equals(relshipExpr.FromEndIdentifier.Name, StringComparison.OrdinalIgnoreCase)); 1746var fromEndCandidates = relationshipType.Members.Select(m => (RelationshipEndMember)m) 1768var toEndCandidates = relationshipType.Members.Select(m => (RelationshipEndMember)m) 1884if (entityKeyRowType.Members.Count != inputKeyRowType.Members.Count) 2967Debug.Assert(projectionItemErrCtxs.Count == rowType.Members.Count); 2968for (int i = 0; i < rowType.Members.Count; i++) 2970if (!TypeHelpers.IsValidDistinctOpType(rowType.Members[i].TypeUsage))
System\Data\Common\Internal\Materialization\Translator.cs (1)
503result = rowType.Members[0].TypeUsage.EdmType;
System\Data\Common\Utils\MetadataHelper.cs (5)
189foreach (EdmMember child in type.Members) 242ReadOnlyMetadataCollection<EdmMember> members = endMember.DeclaringType.Members; 551foreach (AssociationEndMember endMember in associationSet.ElementType.Members) 620Debug.Assert(associationType.Members.Contains(endName), "EndName should be a valid name"); 754foreach (EdmMember member in type.Members)
System\Data\Mapping\BaseMetadataMappingVisitor.cs (1)
281foreach (var member in complexType.Members)
System\Data\Mapping\DefaultObjectMappingItemCollection.cs (6)
494if (!objectType.Members.TryGetValue(edmMember.Name, false/*ignoreCase*/, out objectMember)) 621foreach (EdmMember edmMember in cdmStructuralType.Members) 667if (cdmStructuralType.Members.Count != objectStructuralType.Members.Count) 673foreach (EdmMember member in objectStructuralType.Members) 676if(!cdmStructuralType.Members.Contains(member.Identity))
System\Data\Mapping\ObjectTypeMapping.cs (1)
35m_memberMapping = new Dictionary<string, ObjectMemberMapping>(((StructuralType)cdmType).Members.Count);
System\Data\Mapping\StorageComplexTypeMapping.cs (2)
147if ((type.Members.TryGetValue(memberName, false, out tempMember)) && (tempMember is EdmProperty)) 156if ((type.Members.TryGetValue(memberName, false, out tempMember)) && (tempMember is EdmProperty))
System\Data\Mapping\StorageMappingItemLoader.cs (8)
2055if (!currentTypes.All(t=>t.Members.Contains(memberName))) 2778typeMapping.AssociationType.Members.TryGetValue(endName, false, out endMember); 2856(containerType as StructuralType).Members.TryGetValue(propertyName, false, out tempMember); 2927containerStructuralType.Members.TryGetValue(propertyName, false /*ignoreCase*/, out tempMember); 2953containerStructuralType.Members.TryGetValue(propertyName, false /*ignoreCase*/, out tempMember); 3211((StructuralType)containerType).Members.TryGetValue(propertyName, false /*ignoreCase*/, out tempMember); 4125!type.Members.TryGetValue(propertyName, false, out property)) 4252!type.Members.TryGetValue(propertyName, false, out property))
System\Data\Mapping\ViewGeneration\Structures\MemberPath.cs (1)
567foreach (EdmMember edmMember in structuralType.Members)
System\Data\Mapping\ViewValidator.cs (1)
374structuralTypeSetInfos.Add(structuralType.Members[i].Name, info);
System\Data\Metadata\Converter.cs (7)
506AssociationEndMember fromMember = (AssociationEndMember)associationType.Members[constraint.PrincipalRole.Name]; 507AssociationEndMember toMember = (AssociationEndMember)associationType.Members[constraint.DependentRole.Name]; 552if (!associationType.Members.TryGetValue(end.Name, false/*ignoreCase*/, out member)) 583result[i] = (EdmProperty)entityType.Members[properties[i].Name]; 672AssociationEndMember endMember = (AssociationEndMember)associationType.Members[end.Name]; 833navigationProperty.ToEndMember = (RelationshipEndMember)relationshipType.Members[somNavigationProperty.ToEnd.Name]; 834navigationProperty.FromEndMember = (RelationshipEndMember)relationshipType.Members[somNavigationProperty.FromEnd.Name];
System\Data\Metadata\Edm\AssociationType.cs (1)
67this.Members, Helper.IsAssociationEndMember), null);
System\Data\Metadata\Edm\ComplexType.cs (1)
71this.Members, Helper.IsEdmProperty), null);
System\Data\Metadata\Edm\EntityType.cs (5)
107Debug.Assert(Members.Contains(member)); 120Debug.Assert(Members.Contains(member)); 145((ReadOnlyMetadataCollection<EdmMember>)this.Members), Helper.IsNavigationProperty); 162this.Members, Helper.IsEdmProperty), null); 358foreach (var member in Members)
System\Data\Metadata\Edm\EntityTypeBase.cs (2)
104if (!Members.Contains(member)) 165if (!Members.TryGetValue(keyMember, false, out member))
System\Data\Metadata\Edm\MemberCollection.cs (6)
108return ((StructuralType)_declaringType.BaseType).Members[index]; 172if (baseType != null && ((StructuralType)baseType).Members.Contains(identity)) 199return baseType.Members.IndexOf(item); 231((StructuralType)_declaringType.BaseType).Members.CopyTo(array, arrayIndex); 254((StructuralType)baseType).Members.TryGetValue(identity, ignoreCase, out item); 308return baseType.Members.Count;
System\Data\Metadata\Edm\RelationshipType.cs (1)
53this.Members, Helper.IsRelationshipEndMember);
System\Data\Metadata\Edm\RowType.cs (6)
95this.Members, Helper.IsEdmProperty), null); 208if (this.Members.Count != other.Members.Count) { return false; } 211for (int ordinal = 0; ordinal < this.Members.Count; ordinal++) 213EdmMember thisMember = this.Members[ordinal]; 214EdmMember otherMember = other.Members[ordinal];
System\Data\Metadata\Edm\StructuralType.cs (1)
87this.Members.Source.SetReadOnly();
System\Data\Metadata\EdmValidator.cs (1)
522foreach (EdmMember member in item.Members)
System\Data\Metadata\ObjectLayer\ObjectItemAttributeAssemblyLoader.cs (6)
563if (relationshipType.Members[0].Name == attribute.TargetRoleName) 565navigationProperty.ToEndMember = (RelationshipEndMember)relationshipType.Members[0]; 566navigationProperty.FromEndMember = (RelationshipEndMember)relationshipType.Members[1]; 568else if (relationshipType.Members[1].Name == attribute.TargetRoleName) 570navigationProperty.ToEndMember = (RelationshipEndMember)relationshipType.Members[1]; 571navigationProperty.FromEndMember = (RelationshipEndMember)relationshipType.Members[0];
System\Data\Metadata\ObjectLayer\ObjectItemConventionAssemblyLoader.cs (2)
546navigationProperty.ToEndMember = (RelationshipEndMember)((RelationshipType)ospaceRelationship).Members.First(e => e.Name == cspaceProperty.ToEndMember.Name); 547navigationProperty.FromEndMember = (RelationshipEndMember)((RelationshipType)ospaceRelationship).Members.First(e => e.Name == cspaceProperty.FromEndMember.Name);
System\Data\Metadata\Perspective.cs (1)
61return type.Members.TryGetValue(memberName, ignoreCase, out outMember);
System\Data\Objects\ELinq\Translator.cs (1)
293if (rowType.Members.TryGetValue(name, false, out member))
System\Data\Objects\Internal\EntityProxyFactory.cs (4)
669foreach (EdmMember member in _ospaceEntityType.Members) 843foreach (EdmMember member in ospaceEntityType.Members) 1085foreach (EdmMember member in ospaceEntityType.Members) 1121if (ospaceEntityType.Members.Count != _scalarMembers.Count + _relationshipMembers.Count)
System\Data\Query\PlanCompiler\ConstraintManager.cs (1)
303foreach(md.EdmMember member in relationshipType.Members)
System\Data\Query\PlanCompiler\NominalTypeEliminator.cs (1)
723int columnIndex = originalRowType.Members.IndexOf(simplePropRef.Property);
System.Data.Entity.Design (10)
System\Data\Entity\Design\EntityModelSchemaGenerator.cs (4)
1043Debug.Assert(association.Members.Count == 2, "this code assumes two ends"); 1044AssociationEndMember end1 = (AssociationEndMember)association.Members[0]; 1045AssociationEndMember end2 = (AssociationEndMember)association.Members[1]; 1068foreach (EdmMember member in entityType.Members)
System\Data\Entity\Design\EntityStoreSchemaGenerator.cs (2)
1601List<KeyValuePair<string, DbExpression>> projectList = new List<KeyValuePair<string, DbExpression>>(entitySet.ElementType.Members.Count); 1602foreach (EdmMember member in entitySet.ElementType.Members)
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (1)
225ReadOnlyMetadataCollection<EdmMember> members = item.DeclaringType.Members;
System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (1)
277foreach (EdmMember member in type.Members)
System\Data\EntityModel\Emitters\PropertyEmitter.cs (1)
558if (parentBaseClass != null && parentBaseClass.Members.Contains(PropertyName))
System\Data\EntityModel\Emitters\PropertyEmitterBase.cs (1)
88if (baseType != null && baseType.Members.Contains(name))
System.Data.Services (3)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (3)
1387foreach (EdmMember member in edmType.Members) 2116foreach (EdmMember member in edmType.Members.Where(m => m.DeclaringType == edmType)) 2585foreach (EdmMember member in declaringType.Members)
System.Data.Services.Design (10)
System\Data\EntityModel\Emitters\AttributeEmitter.cs (4)
232EdmMember entityProperty = baseEntityType.Members.SingleOrDefault(p => p.Name == propertyPath[0]); 271if (!baseEntityType.Members.Any(p => p.Name == propertyPath[0])) 285entityProperty = baseEntityType.Members.SingleOrDefault(p => p.Name == pathSegment); 387foreach (EdmMember member in entityType.Members.Where(m => m.DeclaringType == entityType))
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (1)
382ReadOnlyMetadataCollection<EdmMember> members = item.DeclaringType.Members;
System\Data\EntityModel\Emitters\EntityTypeEmitter.cs (1)
40foreach (EdmMember member in Item.Members)
System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (1)
278foreach (EdmMember member in type.Members)
System\Data\EntityModel\Emitters\PropertyEmitter.cs (1)
477if (parentBaseClass != null && parentBaseClass.Members.Contains(PropertyName))
System\Data\EntityModel\Emitters\PropertyEmitterBase.cs (1)
83if (baseType != null && baseType.Members.Contains(name))
System\Data\EntityModel\Emitters\StructuredTypeEmitter.cs (1)
118foreach (EdmMember member in Item.Members)
System.Web.DynamicData (2)
DynamicData\ModelProviders\EFColumnProvider.cs (1)
44var navigationProperties = property.DeclaringType.Members.OfType<NavigationProperty>();
DynamicData\ModelProviders\EFTableProvider.cs (1)
32foreach (EdmMember m in entityType.Members) {
System.Web.Entity (4)
System\Data\WebControls\EntityDataSourceUtil.cs (4)
64members = ((RowType)(tu.EdmType)).Members; 67members = ((EntityType)(tu.EdmType)).Members; 77if ( ((EntityType)(entitySet.ElementType)).Members.Contains(propertyName) ) 818return (AssociationEndMember)end.DeclaringType.Members.Where(m => m != end).Single();
System.Web.Entity.Design (1)
System\Data\WebControls\Design\EntityDataSourceDataSelection.cs (1)
606foreach (EdmMember member in entityType.Members)