125 references to RelationshipMultiplicity
System.Data.Entity (93)
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (1)
2036
if (RelationshipMultiplicity.Many == end.
RelationshipMultiplicity
)
System\Data\Common\CommandTrees\Internal\ExpressionDumper.cs (1)
293
"RelationshipMultiplicity", Enum.GetName(typeof(RelationshipMultiplicity), end.
RelationshipMultiplicity
)
System\Data\Common\CommandTrees\ValueExpressions.cs (2)
586
if (targetEnd.
RelationshipMultiplicity
!= RelationshipMultiplicity.One &&
587
targetEnd.
RelationshipMultiplicity
!= RelationshipMultiplicity.ZeroOrOne)
System\Data\Common\EntitySql\SemanticAnalyzer.cs (5)
1594
if (toEnd.
RelationshipMultiplicity
!= RelationshipMultiplicity.One && toEnd.
RelationshipMultiplicity
!= RelationshipMultiplicity.ZeroOrOne)
1597
Strings.InvalidWithRelationshipTargetEndMultiplicity(toEnd.Name, toEnd.
RelationshipMultiplicity
.ToString()));
1608
(e.
RelationshipMultiplicity
== RelationshipMultiplicity.One ||
1609
e.
RelationshipMultiplicity
== RelationshipMultiplicity.ZeroOrOne)).ToArray();
System\Data\Common\Internal\Materialization\Shaper.cs (3)
288
Debug.Assert(targetMember.
RelationshipMultiplicity
== RelationshipMultiplicity.One || targetMember.
RelationshipMultiplicity
== RelationshipMultiplicity.ZeroOrOne);
322
switch (sourceMember.
RelationshipMultiplicity
)
System\Data\Common\Utils\MetadataHelper.cs (2)
263
GetLowerBoundOfMultiplicity(endMember.
RelationshipMultiplicity
) == 0)
554
endMember.
RelationshipMultiplicity
== RelationshipMultiplicity.Many) // some other end has multiplicity 0..*
System\Data\Mapping\DefaultObjectMappingItemCollection.cs (4)
762
if (edmEnd.
RelationshipMultiplicity
!= objectEnd.
RelationshipMultiplicity
)
765
edmEnd.
RelationshipMultiplicity
, edmEnd.Name, association.FullName,
766
objectEnd.
RelationshipMultiplicity
, objectEnd.Name, objectAssociation.FullName));
System\Data\Mapping\MetadataMappingHasherVisitor.cs (2)
436
this.AddObjectContentToHashBuilder(associationEndMember.
RelationshipMultiplicity
);
481
this.AddObjectContentToHashBuilder(relationshipEndMember.
RelationshipMultiplicity
);
System\Data\Mapping\StorageMappingItemCollection.ViewDictionary.cs (1)
305
if (rc.FromRole.
RelationshipMultiplicity
== RelationshipMultiplicity.ZeroOrOne)
System\Data\Mapping\StorageMappingItemLoader.cs (2)
4056
if (toEnd.CorrespondingAssociationEndMember.
RelationshipMultiplicity
!= RelationshipMultiplicity.One &&
4057
toEnd.CorrespondingAssociationEndMember.
RelationshipMultiplicity
!= RelationshipMultiplicity.ZeroOrOne)
System\Data\Mapping\Update\Internal\FunctionMappingTranslator.cs (1)
245
if (endMember.
RelationshipMultiplicity
== RelationshipMultiplicity.One)
System\Data\Mapping\Update\Internal\RelationshipConstraintValidator.cs (5)
102
fromEnd.CorrespondingAssociationEndMember.
RelationshipMultiplicity
)) { continue; }
195
int minimumCount = MetadataHelper.GetLowerBoundOfMultiplicity(expectedRelationship.FromEnd.
RelationshipMultiplicity
);
196
int? maximumCountDeclared = MetadataHelper.GetUpperBoundOfMultiplicity(expectedRelationship.FromEnd.
RelationshipMultiplicity
);
220
int minimumCount = MetadataHelper.GetLowerBoundOfMultiplicity(actualRelationship.FromEnd.
RelationshipMultiplicity
);
221
int? maximumCount = MetadataHelper.GetUpperBoundOfMultiplicity(actualRelationship.FromEnd.
RelationshipMultiplicity
);
System\Data\Mapping\ViewGeneration\QueryRewriting\FragmentQueryKB.cs (4)
114
if (constraint.FromRole.
RelationshipMultiplicity
.Equals(RelationshipMultiplicity.One))
117
Debug.Assert(constraint.ToRole.
RelationshipMultiplicity
.Equals(RelationshipMultiplicity.Many) == false);
144
Debug.Assert(constraint.FromRole.
RelationshipMultiplicity
.Equals(RelationshipMultiplicity.One));
145
Debug.Assert(constraint.ToRole.
RelationshipMultiplicity
.Equals(RelationshipMultiplicity.One));
System\Data\Mapping\ViewGeneration\Structures\CellQuery.cs (1)
341
foreach (var association in associations.Where(association => association.AssociationSetEnds.Any(end => ( end.CorrespondingAssociationEndMember.
RelationshipMultiplicity
== RelationshipMultiplicity.One &&
System\Data\Mapping\ViewGeneration\Structures\LeafCellTreeNode.cs (1)
212
if (foreignKeyEndMap == null || foreignKeyEndMap.EndMember.
RelationshipMultiplicity
== RelationshipMultiplicity.Many)
System\Data\Mapping\ViewGeneration\Validation\ForeignConstraint.cs (2)
461
if (parentEnd.
RelationshipMultiplicity
== RelationshipMultiplicity.Many)
472
if (MemberPath.AreAllMembersNullable(ChildColumns) == false && parentEnd.
RelationshipMultiplicity
!= RelationshipMultiplicity.One)
System\Data\Mapping\ViewGeneration\ViewgenContext.cs (1)
141
oneToOneForeignKeyAssociationsForThisWrapper = oneToOneForeignKeyAssociationsForThisWrapper.Where(it => (it.AssociationEndMembers.All(endMember => endMember.
RelationshipMultiplicity
== RelationshipMultiplicity.One)));
System\Data\Metadata\Edm\EntityType.cs (2)
336
navProperty.FromEndMember.
RelationshipMultiplicity
+ "*" +
338
navProperty.ToEndMember.
RelationshipMultiplicity
+ "*");
System\Data\Metadata\Edm\LightweightCodeGenerator.cs (4)
491
switch (targetMember.
RelationshipMultiplicity
)
502
sourceMember.
RelationshipMultiplicity
,
515
sourceMember.
RelationshipMultiplicity
,
521
throw EntityUtil.InvalidEnumerationValue(typeof(RelationshipMultiplicity), (int)targetMember.
RelationshipMultiplicity
);
System\Data\Metadata\Helper.cs (5)
158
it.
RelationshipMultiplicity
.Equals(RelationshipMultiplicity.One)))
162
((it.
RelationshipMultiplicity
.Equals(RelationshipMultiplicity.Many))
163
|| (it.
RelationshipMultiplicity
.Equals(RelationshipMultiplicity.ZeroOrOne))));
168
(it.
RelationshipMultiplicity
.Equals(RelationshipMultiplicity.ZeroOrOne))))
172
((it.
RelationshipMultiplicity
.Equals(RelationshipMultiplicity.Many))));
System\Data\Metadata\ObjectLayer\ObjectItemConventionAssemblyLoader.cs (2)
426
bool needsSetter = cspaceProperty.ToEndMember.
RelationshipMultiplicity
!= RelationshipMultiplicity.Many;
704
ospaceAssociation.AddKeyMember(new AssociationEndMember(cspaceEnd.Name, ospaceEndType.GetReferenceType(), cspaceEnd.
RelationshipMultiplicity
));
System\Data\Objects\DataClasses\EntityReference_TResultType.cs (3)
185
if (!((AssociationType)base.RelationMetadata).IsForeignKey && ToEndMember.
RelationshipMultiplicity
== RelationshipMultiplicity.One)
300
if (FromEndProperty.
RelationshipMultiplicity
!= RelationshipMultiplicity.Many)
329
if (FromEndProperty.
RelationshipMultiplicity
!= RelationshipMultiplicity.Many && !relatedEnd.IsEmpty())
System\Data\Objects\DataClasses\RelatedEnd.cs (3)
1801
((ToEndMember.
RelationshipMultiplicity
== RelationshipMultiplicity.ZeroOrOne ||
1802
ToEndMember.
RelationshipMultiplicity
== RelationshipMultiplicity.One) &&
1998
_fromEndProperty.
RelationshipMultiplicity
== RelationshipMultiplicity.Many;
System\Data\Objects\EntityEntry.cs (4)
2142
if (n.ToEndMember.
RelationshipMultiplicity
== RelationshipMultiplicity.Many)
2265
if (n.ToEndMember.
RelationshipMultiplicity
== RelationshipMultiplicity.Many)
2552
RelationshipMultiplicity multiplicity = this.GetAssociationEndMember(relationshipEntry).
RelationshipMultiplicity
;
2607
RelationshipMultiplicity multiplicity = this.GetAssociationEndMember(relationshipEntry).
RelationshipMultiplicity
;
System\Data\Objects\Internal\EntityProxyFactory.cs (2)
1102
RelationshipMultiplicity multiplicity = navProperty.ToEndMember.
RelationshipMultiplicity
;
1210
if (navProperty.ToEndMember.
RelationshipMultiplicity
== RelationshipMultiplicity.Many)
System\Data\Objects\Internal\LazyLoadBehavior.cs (2)
62
RelationshipMultiplicity multiplicity = navProperty.ToEndMember.
RelationshipMultiplicity
;
124
RelationshipMultiplicity multiplicity = navProperty.ToEndMember.
RelationshipMultiplicity
;
System\Data\Objects\Internal\ObjectSpanRewriter.cs (2)
697
(RelationshipMultiplicity.One == toEnd.
RelationshipMultiplicity
||
698
RelationshipMultiplicity.ZeroOrOne == toEnd.
RelationshipMultiplicity
))
System\Data\Objects\ObjectStateManager.cs (6)
815
if (targetMember.
RelationshipMultiplicity
!= RelationshipMultiplicity.Many)
929
if ((endMember.
RelationshipMultiplicity
== RelationshipMultiplicity.One ||
930
endMember.
RelationshipMultiplicity
== RelationshipMultiplicity.ZeroOrOne))
1020
switch (sourceMember.
RelationshipMultiplicity
)
1089
if (endMember != null && endMember.
RelationshipMultiplicity
== RelationshipMultiplicity.Many)
1209
switch (targetMember.
RelationshipMultiplicity
)
System\Data\Query\InternalTrees\Command.cs (1)
1814
if (relProperty.ToEnd.
RelationshipMultiplicity
!= RelationshipMultiplicity.Many &&
System\Data\Query\InternalTrees\RelPropertyHelper.cs (1)
126
if (toEnd.
RelationshipMultiplicity
== RelationshipMultiplicity.Many)
System\Data\Query\PlanCompiler\ConstraintManager.cs (3)
113
internal md.RelationshipMultiplicity ChildMultiplicity { get { return m_constraint.ToRole.
RelationshipMultiplicity
; } }
157
PlanCompiler.Assert((md.RelationshipMultiplicity.ZeroOrOne == fromEnd.
RelationshipMultiplicity
|| md.RelationshipMultiplicity.One == fromEnd.
RelationshipMultiplicity
), "from-end of relationship constraint cannot have multiplicity greater than 1");
System\Data\Query\PlanCompiler\PreProcessor.cs (15)
481
(navigateOp.ToEnd.
RelationshipMultiplicity
== RelationshipMultiplicity.ZeroOrOne ||
482
navigateOp.ToEnd.
RelationshipMultiplicity
== RelationshipMultiplicity.One))
503
if (navigateOp.ToEnd.
RelationshipMultiplicity
!= RelationshipMultiplicity.Many)
549
if (navigateOp.ToEnd.
RelationshipMultiplicity
== RelationshipMultiplicity.Many)
839
PlanCompiler.Assert(relProperty.FromEnd.
RelationshipMultiplicity
!= RelationshipMultiplicity.Many,
909
PlanCompiler.Assert(relProperty.ToEnd.
RelationshipMultiplicity
== RelationshipMultiplicity.Many &&
910
relProperty.FromEnd.
RelationshipMultiplicity
== RelationshipMultiplicity.Many,
911
"Expected target end multiplicity to be 'many'. Found " + relProperty + "; multiplicity = " + relProperty.ToEnd.
RelationshipMultiplicity
);
976
PlanCompiler.Assert(m_command.IsRelPropertyReferenced(relProperty) || (relProperty.ToEnd.
RelationshipMultiplicity
== RelationshipMultiplicity.Many),
980
if ((relProperty.FromEnd.
RelationshipMultiplicity
== RelationshipMultiplicity.Many) &&
981
(relProperty.ToEnd.
RelationshipMultiplicity
!= RelationshipMultiplicity.Many))
994
if (relProperty.ToEnd.
RelationshipMultiplicity
== RelationshipMultiplicity.Many)
1007
if (relProperty.ToEnd.
RelationshipMultiplicity
== RelationshipMultiplicity.Many)
1010
if (relProperty.FromEnd.
RelationshipMultiplicity
== RelationshipMultiplicity.Many)
1255
if (navProperty.ToEndMember.
RelationshipMultiplicity
== RelationshipMultiplicity.Many)
System.Data.Entity.Design (12)
System\Data\Entity\Design\Common\MetadataItemSerializer.cs (1)
323
_writer.WriteAttributeString(XmlConstants.Multiplicity, GetXmlMultiplicity(end.
RelationshipMultiplicity
));
System\Data\Entity\Design\Common\OneToOneMappingSerializer.cs (1)
121
multiplicity = multiplicityAssociationSetEnd.CorrespondingAssociationEndMember.
RelationshipMultiplicity
;
System\Data\Entity\Design\EntityModelSchemaGenerator.cs (3)
962
if (storeConstraint.FromRole.
RelationshipMultiplicity
== RelationshipMultiplicity.ZeroOrOne &&
963
storeConstraint.ToRole.
RelationshipMultiplicity
== RelationshipMultiplicity.Many &&
1076
RelationshipMultiplicity multiplicity = storeEndMember.
RelationshipMultiplicity
;
System\Data\Entity\Design\PluralizationService\EntityDesignPluralizationHandler.cs (1)
58
return toEnd.
RelationshipMultiplicity
== RelationshipMultiplicity.Many ?
System\Data\EntityModel\Emitters\AssociationTypeEmitter.cs (2)
44
GetMultiplicityCodeExpression(end1.
RelationshipMultiplicity
),
47
GetMultiplicityCodeExpression(end2.
RelationshipMultiplicity
),
System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (4)
60
if (Item.ToEndMember.
RelationshipMultiplicity
!= RelationshipMultiplicity.Many)
143
if (target.
RelationshipMultiplicity
!= RelationshipMultiplicity.Many)
319
else if (target.
RelationshipMultiplicity
== RelationshipMultiplicity.Many)
347
if (target.
RelationshipMultiplicity
!= RelationshipMultiplicity.Many)
System.Data.Services (3)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (3)
1916
xmlWriter.WriteAttributeString(XmlConstants.Multiplicity, GetMultiplicity(end.
RelationshipMultiplicity
));
2072
if (association.RelationshipEndMembers[0].
RelationshipMultiplicity
== RelationshipMultiplicity.Many ||
2073
association.RelationshipEndMembers[1].
RelationshipMultiplicity
== RelationshipMultiplicity.Many)
System.Data.Services.Design (3)
System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (3)
54
EmitField(typeDecl, GetReturnType(Item.ToEndMember), Item.ToEndMember.
RelationshipMultiplicity
== RelationshipMultiplicity.Many);
138
if (target.
RelationshipMultiplicity
!= RelationshipMultiplicity.Many)
317
if (target.
RelationshipMultiplicity
== RelationshipMultiplicity.Many)
System.Web.DynamicData (9)
DynamicData\ModelProviders\EFAssociationProvider.cs (9)
35
if (navigationProperty.ToEndMember.
RelationshipMultiplicity
== RelationshipMultiplicity.Many) {
36
if (navigationProperty.FromEndMember.
RelationshipMultiplicity
== RelationshipMultiplicity.Many) {
44
if (navigationProperty.FromEndMember.
RelationshipMultiplicity
== RelationshipMultiplicity.Many) {
82
return (navigationProperty.ToEndMember.
RelationshipMultiplicity
== RelationshipMultiplicity.ZeroOrOne &&
83
navigationProperty.FromEndMember.
RelationshipMultiplicity
== RelationshipMultiplicity.One) ||
84
(navigationProperty.ToEndMember.
RelationshipMultiplicity
== RelationshipMultiplicity.One &&
85
navigationProperty.FromEndMember.
RelationshipMultiplicity
== RelationshipMultiplicity.ZeroOrOne);
104
if (navigationProperty.ToEndMember.
RelationshipMultiplicity
== RelationshipMultiplicity.ZeroOrOne &&
105
navigationProperty.FromEndMember.
RelationshipMultiplicity
== RelationshipMultiplicity.One) {
System.Web.Entity (4)
System\Data\WebControls\EntityDataSourceColumn.cs (2)
207
if (this.group.End.CorrespondingAssociationEndMember.
RelationshipMultiplicity
== RelationshipMultiplicity.ZeroOrOne)
365
get { return navigationProperty.ToEndMember.
RelationshipMultiplicity
== RelationshipMultiplicity.ZeroOrOne; }
System\Data\WebControls\EntityDataSourceUtil.cs (2)
834
RelationshipMultiplicity fromMult = fromEnd.CorrespondingAssociationEndMember.
RelationshipMultiplicity
;
835
RelationshipMultiplicity toMult = toEnd.CorrespondingAssociationEndMember.
RelationshipMultiplicity
;
System.Web.Entity.Design (1)
System\Data\WebControls\Design\EntityDataSourceDataSelection.cs (1)
617
if (navProp.ToEndMember.
RelationshipMultiplicity
!= RelationshipMultiplicity.Many)