71 references to ToProperties
System.Data.Entity (46)
System\Data\Common\CommandTrees\Internal\ViewSimplifier.cs (1)
298join ft in fkConstraint.FromProperties.Select((fp, idx) => Tuple.Create(fp, fkConstraint.ToProperties[idx])) //new { PrincipalProperty = fp, DependentProperty = fkConstraint.ToProperties[idx] })
System\Data\Common\Utils\MetadataHelper.cs (1)
526otherEndProperties = Helpers.AsSuperTypeList<EdmProperty, EdmMember>(constraint.ToProperties);
System\Data\Mapping\BaseMetadataMappingVisitor.cs (1)
173foreach (var property in referentialConstraint.ToProperties)
System\Data\Mapping\StorageMappingItemCollection.cs (1)
643.Where(p => entitySet.ForeignKeyDependents.SelectMany(fk => fk.Item2.ToProperties).Contains(p)));
System\Data\Mapping\StorageMappingItemCollection.ViewDictionary.cs (2)
311foreach (EdmProperty fkProp in rc.ToProperties) 340keyValues.Add(e.Property(rc.ToProperties[offset]));
System\Data\Mapping\StorageMappingItemLoader.cs (3)
1426if (associationSet.ElementType.ReferentialConstraints.Single().ToProperties.All(p => dependentKeys.Contains(p))) 4077constraint.ToProperties.All(p => m_entitySet.ElementType.KeyMembers.Contains(p))) 4319members = new EdmMember[] { constraint.ToProperties[ordinal], };
System\Data\Mapping\Update\Internal\ExtractorMetadata.cs (1)
65.SelectMany(fk => fk.Item2.ToProperties)).MakeReadOnly();
System\Data\Mapping\Update\Internal\UpdateCommandOrderer.cs (1)
397metadata.ToProperties;
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (3)
183using (ReadOnlyMetadataCollection<EdmProperty>.Enumerator dependentPropertyEnum = constraint.ToProperties.GetEnumerator()) 249int recordOrdinal = record.GetOrdinal(constraint.ToProperties[constraintOrdinal].Name); 302var dependentProperty = constraint.ToProperties[i];
System\Data\Mapping\ViewGeneration\BasicViewGenerator.cs (1)
448var fkColumns = pkFkInfo.Item2.ToProperties;
System\Data\Mapping\ViewGeneration\QueryRewriting\FragmentQueryKB.cs (2)
110IEnumerable<EdmMember> toProperties = Helpers.AsSuperTypeList<EdmProperty, EdmMember>(constraint.ToProperties); 140IEnumerable<EdmMember> toProperties = Helpers.AsSuperTypeList<EdmProperty, EdmMember>(constraint.ToProperties);
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); 386var childRefPropertiesCollection = childPropertiesSet.Where(it => it.SetEquals(new Set<EdmProperty>(refConstraint.ToProperties))); 395var childIndexes = GetPropertyIndexes(childRefProperties, refConstraint.ToProperties);
System\Data\Metadata\Edm\NavigationProperty.cs (1)
159dependantProperties.Add(rc.ToProperties[rc.FromProperties.IndexOf(((EdmProperty)keyMembers[i]))]);
System\Data\Metadata\Edm\ReferentialConstraint.cs (1)
152this.ToProperties.Source.SetReadOnly();
System\Data\Objects\DataClasses\EntityReference.cs (3)
496int dependentOrdinal = dependentTypeMetadata.GetOrdinalforOLayerMemberName(constraint.ToProperties[i].Name); 584int dependentOrdinal = dependentTypeMetadata.GetOrdinalforOLayerMemberName(constraint.ToProperties[i].Name); 665string propertyName = constraint.ToProperties[i].Name;
System\Data\Objects\DataClasses\EntityReference_TResultType.cs (2)
620Debug.Assert(constraint.FromProperties.Count == constraint.ToProperties.Count, "Referential constraints From/To properties list have different size"); 634constraint.ToProperties[i].Name,
System\Data\Objects\DataClasses\RelatedEnd.cs (6)
419var dependentProps = fkConstraint.ToProperties; 1495bool allPropertiesAreKeyProperties = RelatedEnd.CheckIfAllPropertiesAreKeyProperties(entityType.KeyMemberNames, constraint.ToProperties); 1528bool allPropertiesAreKeyProperties = RelatedEnd.CheckIfAllPropertiesAreKeyProperties(entityType.KeyMemberNames, constraint.ToProperties); 1705foreach (var dependentProp in constraint.ToProperties) 1911Debug.Assert(constraint.FromProperties.Count == constraint.ToProperties.Count, "RIC: Referential constraints From/To properties list have different size"); 1917string toPropertyName = constraint.ToProperties[i].Name;
System\Data\Objects\DataClasses\RelationshipManager.cs (1)
1468foreach (EdmProperty property in constraint.ToProperties)
System\Data\Objects\EntityEntry.cs (5)
2746EntityEntry.AddOrIncreaseCounter(properties, constraint.ToProperties[i].Name, pair.Value); 2815if (constraint.ToProperties[i].Name == pair.Key) 3763foreach (EdmProperty dependentProp in principal.Item2.ToProperties) 3797foreach (EdmProperty property in dependent.Item2.ToProperties) 3814foreach (EdmProperty property in dependent.Item2.ToProperties)
System\Data\Objects\Internal\ForeignKeyFactory.cs (1)
98var dependentProps = constraint.ToProperties;
System\Data\Objects\ObjectStateManager.cs (1)
3272constraint.ToProperties[i].Name,
System\Data\Query\PlanCompiler\ConstraintManager.cs (2)
146foreach (md.EdmProperty prop in constraint.ToProperties) 184IEnumerator<md.EdmProperty> childProps = m_constraint.ToProperties.GetEnumerator();
System\Data\SqlClient\SqlProviderUtilities.cs (1)
213AppendIdentifiers(constraint.ToProperties);
System.Data.Entity.Design (23)
System\Data\Entity\Design\Common\MetadataItemSerializer.cs (1)
298WriteReferentialConstraintRoleElement(XmlConstants.DependentRole, constraint.ToRole, constraint.ToProperties);
System\Data\Entity\Design\Common\OneToOneMappingSerializer.cs (6)
194return constraint1.ToProperties.Any(c => constraint0.ToProperties.Contains(c)); 204foreach (EdmProperty property in constraint.ToProperties) 224foreach (EdmProperty property in constraint.ToProperties) 392foreach (EdmProperty fkColumn in constraint.ToProperties) 454return constraint.ToProperties[i];
System\Data\Entity\Design\EntityModelSchemaGenerator.cs (11)
668foreach (EdmProperty property in constraint.ToProperties) 955nullableColumnsImplyingOneToOneMultiplicity = storeConstraint.ToProperties.All(p => p.Nullable == false); 959nullableColumnsImplyingOneToOneMultiplicity = storeConstraint.ToProperties.Any(p => p.Nullable == false); 985Debug.Assert(storeConstraint.FromProperties.Count == storeConstraint.ToProperties.Count, "FromProperties and ToProperties have different counts"); 987Debug.Assert(storeConstraint.ToProperties[0].DeclaringType.BuiltInTypeKind == BuiltInTypeKind.EntityType, "The property is not from an EntityType"); 989EntityType toType = (EntityType)storeConstraint.ToProperties[0].DeclaringType; 1007toProperties[index] = session.MappingLookups.StoreEdmPropertyToModelEdmProperty[storeConstraint.ToProperties[index]]; 1028Debug.Assert(storeConstraint.FromProperties.Count == storeConstraint.ToProperties.Count, "FromProperties and ToProperties have different counts"); 1030Debug.Assert(storeConstraint.ToProperties[0].DeclaringType.BuiltInTypeKind == BuiltInTypeKind.EntityType, "The property is not from an EntityType"); 1032EntityType toType = (EntityType)storeConstraint.ToProperties[0].DeclaringType; 1038return toType.KeyMembers.Contains(storeConstraint.ToProperties[0]);
System\Data\Entity\Design\EntityStoreSchemaGenerator.cs (5)
853foreach (var toPropertyOfAddedAssociation in session.AssociationTypes.SelectMany(t => t.ReferentialConstraints.SelectMany(refconst => refconst.ToProperties))) 855foreach (var toProperty in type.ReferentialConstraints.SelectMany(refconst => refconst.ToProperties)) 1053EntityType toType = (EntityType)constraint.ToProperties[0].DeclaringType; 1058foreach (EdmProperty edmProperty in constraint.ToProperties) 1067string foreignKeys = MetadataUtil.MembersToCommaSeparatedString((System.Collections.IEnumerable)constraint.ToProperties);
System.Data.Services (1)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (1)
1940WriteReferentialConstraintChildElement(xmlWriter, XmlConstants.Dependent, referentialConstraint.ToRole.Name, referentialConstraint.ToProperties);
System.Web.Entity (1)
System\Data\WebControls\EntityDataSourceUtil.cs (1)
1044EdmProperty correspondingProperty = constraint.ToProperties[ordinalInConstraint];