52 references to FromProperties
System.Data.Entity (40)
System\Data\Common\CommandTrees\Internal\ViewSimplifier.cs (3)
298join ft in fkConstraint.FromProperties.Select((fp, idx) => Tuple.Create(fp, fkConstraint.ToProperties[idx])) //new { PrincipalProperty = fp, DependentProperty = fkConstraint.ToProperties[idx] }) 308if (fkConstraint.FromProperties.Count == 1) 311Debug.Assert(singleKeyNameAndValue.Item1 == fkConstraint.FromProperties[0].Name, "Unexpected single key property name");
System\Data\Common\Utils\MetadataHelper.cs (1)
521otherEndProperties = Helpers.AsSuperTypeList<EdmProperty, EdmMember>(constraint.FromProperties);
System\Data\Mapping\BaseMetadataMappingVisitor.cs (1)
167foreach (var property in referentialConstraint.FromProperties)
System\Data\Mapping\StorageMappingItemCollection.ViewDictionary.cs (1)
339int offset = rc.FromProperties.IndexOf((EdmProperty)keyMember);
System\Data\Mapping\StorageMappingItemLoader.cs (1)
4316int ordinal = constraint.FromProperties.IndexOf((EdmProperty)m_members.First());
System\Data\Mapping\Update\Internal\UpdateCommandOrderer.cs (1)
396IList<EdmProperty> keyProperties = isTarget ? metadata.FromProperties :
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (4)
182using (ReadOnlyMetadataCollection<EdmProperty>.Enumerator principalPropertyEnum = constraint.FromProperties.GetEnumerator()) 248int constraintOrdinal = constraint.FromProperties.IndexOf((EdmProperty)keyMember); 299for (int i = 0, n = constraint.FromProperties.Count; i < n; i++) 301var principalProperty = constraint.FromProperties[i];
System\Data\Mapping\ViewGeneration\Structures\MemberPath.cs (2)
728ReadOnlyMetadataCollection<EdmProperty> properties0 = isFrom0 ? constraint.FromProperties : constraint.ToProperties; 729ReadOnlyMetadataCollection<EdmProperty> properties1 = isFrom0 ? constraint.ToProperties : constraint.FromProperties;
System\Data\Mapping\ViewGeneration\Validation\ForeignConstraint.cs (3)
121constraint.FromProperties, constraint.ToProperties); 387var parentRefPropertiesCollection = parentPropertiesSet.Where(it => it.SetEquals(new Set<EdmProperty>(refConstraint.FromProperties))); 392var parentIndexes = GetPropertyIndexes(parentRefProperties, refConstraint.FromProperties);
System\Data\Metadata\Edm\NavigationProperty.cs (1)
159dependantProperties.Add(rc.ToProperties[rc.FromProperties.IndexOf(((EdmProperty)keyMembers[i]))]);
System\Data\Metadata\Edm\ReferentialConstraint.cs (1)
151this.FromProperties.Source.SetReadOnly();
System\Data\Objects\DataClasses\EntityReference.cs (4)
483var principalProps = constraint.FromProperties; 581for (int i = 0; i < constraint.FromProperties.Count; i++) 583object value = principalKey.FindValueByName(constraint.FromProperties[i].Name); 663for (int i = 0; i < constraint.FromProperties.Count; i++)
System\Data\Objects\DataClasses\EntityReference_TResultType.cs (3)
620Debug.Assert(constraint.FromProperties.Count == constraint.ToProperties.Count, "Referential constraints From/To properties list have different size"); 630for (int i = 0; i < constraint.FromProperties.Count; ++i) 635retrievedProperties[constraint.FromProperties[i].Name].Key);
System\Data\Objects\DataClasses\RelatedEnd.cs (4)
418var principalProps = fkConstraint.FromProperties; 1911Debug.Assert(constraint.FromProperties.Count == constraint.ToProperties.Count, "RIC: Referential constraints From/To properties list have different size"); 1914for (int i = 0; i < constraint.FromProperties.Count; ++i) 1916string fromPropertyName = constraint.FromProperties[i].Name;
System\Data\Objects\EntityEntry.cs (4)
2742for (int i = 0; i < constraint.FromProperties.Count; ++i) 2744if (constraint.FromProperties[i].Name == pair.Key) 2813for (int i = 0; i < constraint.FromProperties.Count; ++i) 2817if (!ByValueEqualityComparer.Default.Equals(GetCurrentEntityValue(constraint.FromProperties[i].Name), pair.Value))
System\Data\Objects\Internal\ForeignKeyFactory.cs (1)
117var principalProps = constraint.FromProperties;
System\Data\Objects\ObjectStateManager.cs (2)
3268for (int i = 0; i < constraint.FromProperties.Count; ++i) 3273retrievedProperties[constraint.FromProperties[i].Name].Key);
System\Data\Query\PlanCompiler\ConstraintManager.cs (2)
152foreach (md.EdmProperty prop in constraint.FromProperties) 183IEnumerator<md.EdmProperty> parentProps = m_constraint.FromProperties.GetEnumerator();
System\Data\SqlClient\SqlProviderUtilities.cs (1)
217AppendIdentifiers(constraint.FromProperties);
System.Data.Entity.Design (9)
System\Data\Entity\Design\Common\MetadataItemSerializer.cs (1)
297WriteReferentialConstraintRoleElement(XmlConstants.PrincipalRole, constraint.FromRole, constraint.FromProperties);
System\Data\Entity\Design\Common\OneToOneMappingSerializer.cs (2)
449for (int i = 0; i < constraint.FromProperties.Count; i++) 451if (constraint.FromProperties[i] == storeKeyProperty)
System\Data\Entity\Design\EntityModelSchemaGenerator.cs (6)
985Debug.Assert(storeConstraint.FromProperties.Count == storeConstraint.ToProperties.Count, "FromProperties and ToProperties have different counts"); 986Debug.Assert(storeConstraint.FromProperties.Count != 0, "No properties in the constraint, why does the constraint exist?"); 999int count = storeConstraint.FromProperties.Count; 1006fromProperties[index] = session.MappingLookups.StoreEdmPropertyToModelEdmProperty[storeConstraint.FromProperties[index]]; 1028Debug.Assert(storeConstraint.FromProperties.Count == storeConstraint.ToProperties.Count, "FromProperties and ToProperties have different counts"); 1029Debug.Assert(storeConstraint.FromProperties.Count != 0, "No properties in the constraint, why does the constraint exist?");
System.Data.Services (1)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (1)
1939WriteReferentialConstraintChildElement(xmlWriter, XmlConstants.Principal, referentialConstraint.FromRole.Name, referentialConstraint.FromProperties);
System.Web.DynamicData (1)
DynamicData\ModelProviders\EFAssociationProvider.cs (1)
114return constraint.FromProperties.Select(p => p.Name);
System.Web.Entity (1)
System\Data\WebControls\EntityDataSourceUtil.cs (1)
1041int ordinalInConstraint = constraint.FromProperties.IndexOf(keyMember);