25 references to IsForeignKey
System.Data.Entity (21)
System\Data\Common\CommandTrees\Internal\ViewSimplifier.cs (1)
128
assocSet.ElementType.
IsForeignKey
&&
System\Data\Mapping\StorageMappingItemCollection.ViewDictionary.cs (1)
277
if (aSet.ElementType.
IsForeignKey
)
System\Data\Mapping\StorageMappingItemLoader.cs (5)
689
&& !associationSet.ElementType.
IsForeignKey
)
708
&& !associationSet.ElementType.
IsForeignKey
)
1422
if (associationSet.ElementType.
IsForeignKey
)
4068
if (associationSet.ElementType.
IsForeignKey
)
4311
if (associationType.
IsForeignKey
)
System\Data\Mapping\Update\Internal\RelationshipConstraintValidator.cs (1)
328
if (null != associationSet && !associationSet.ElementType.
IsForeignKey
)
System\Data\Mapping\ViewGeneration\Validation\ForeignConstraint.cs (1)
375
var foreignKeyAssociations = childContext.EntityContainerMapping.EdmEntityContainer.BaseEntitySets.OfType<AssociationSet>().Where(it => it.ElementType.
IsForeignKey
).Select(it => it.ElementType);
System\Data\Mapping\ViewGeneration\ViewgenContext.cs (1)
137
var allForeignKeyAssociationSets = this.m_entityContainerMapping.EdmEntityContainer.BaseEntitySets.OfType<AssociationSet>().Where(it => it.ElementType.
IsForeignKey
);
System\Data\Mapping\ViewGeneration\ViewgenGatekeeper.cs (1)
248
if (associationSet==null || !associationSet.ElementType.
IsForeignKey
)
System\Data\Metadata\Edm\EntitySet.cs (1)
138
if (associationSet.ElementType.
IsForeignKey
)
System\Data\Metadata\ObjectLayer\ObjectItemConventionAssemblyLoader.cs (1)
698
AssociationType ospaceAssociation = new AssociationType(cspaceAssociation.Name, cspaceAssociation.NamespaceName, cspaceAssociation.
IsForeignKey
, DataSpace.OSpace);
System\Data\Objects\DataClasses\EntityReference_TResultType.cs (1)
185
if (!((AssociationType)base.RelationMetadata).
IsForeignKey
&& ToEndMember.RelationshipMultiplicity == RelationshipMultiplicity.One)
System\Data\Objects\DataClasses\RelatedEnd.cs (4)
147
return ((AssociationType)_relationMetadata).
IsForeignKey
;
415
if (associationMetadata.
IsForeignKey
)
2204
Debug.Assert(relationshipSet == null || !(relationshipSet.ElementType as AssociationType).
IsForeignKey
, "for IsForeignKey relationships ObjectStateEntries don't exist");
2240
Debug.Assert(relationshipSet == null || !(relationshipSet.ElementType as AssociationType).
IsForeignKey
, "for IsForeignKey relationships ObjectStateEntries don't exist");
System\Data\Objects\DataClasses\RelationshipManager.cs (1)
1456
if (skipFK && association.ElementType.
IsForeignKey
)
System\Data\Objects\Internal\ObjectSpanRewriter.cs (1)
696
if(!associationType.
IsForeignKey
&&
System\Data\Objects\ObjectStateManager.cs (1)
1174
if (associationSet.ElementType.
IsForeignKey
)
System.Data.Entity.Design (2)
System\Data\Entity\Design\Common\OneToOneMappingSerializer.cs (2)
348
if (!collapsedAssociationSet.ModelAssociationSet.ElementType.
IsForeignKey
)
374
if (!model.ElementType.
IsForeignKey
)
System.Data.Services (1)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (1)
2065
if (!association.
IsForeignKey
)
System.Web.Entity.Design (1)
System\Data\WebControls\Design\EntityDataSourceDataSelection.cs (1)
620
if (!associationType.
IsForeignKey
)