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