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