44 references to One
System.Data.Entity (35)
System\Data\Common\CommandTrees\ValueExpressions.cs (1)
586
if (targetEnd.RelationshipMultiplicity != RelationshipMultiplicity.
One
&&
System\Data\Common\EntitySql\SemanticAnalyzer.cs (2)
1594
if (toEnd.RelationshipMultiplicity != RelationshipMultiplicity.
One
&& toEnd.RelationshipMultiplicity != RelationshipMultiplicity.ZeroOrOne)
1608
(e.RelationshipMultiplicity == RelationshipMultiplicity.
One
||
System\Data\Common\Internal\Materialization\Shaper.cs (2)
288
Debug.Assert(targetMember.RelationshipMultiplicity == RelationshipMultiplicity.
One
|| targetMember.RelationshipMultiplicity == RelationshipMultiplicity.ZeroOrOne);
325
case RelationshipMultiplicity.
One
:
System\Data\Common\Utils\MetadataHelper.cs (1)
734
if (multiplicity == RelationshipMultiplicity.
One
||
System\Data\EntityModel\SchemaObjectModel\ReferentialConstraint.cs (4)
98
: RelationshipMultiplicity.
One
;
118
&& principalRoleEnd.Multiplicity == RelationshipMultiplicity.
One
)
129
&& principalRoleEnd.Multiplicity != RelationshipMultiplicity.
One
)
148
if (dependentRoleEnd.Multiplicity == RelationshipMultiplicity.
One
&& Schema.DataModel == SchemaDataModelOption.ProviderDataModel)
System\Data\EntityModel\SchemaObjectModel\RelationshipEnd.cs (1)
277
multiplicity = RelationshipMultiplicity.
One
;
System\Data\Mapping\StorageMappingItemLoader.cs (1)
4056
if (toEnd.CorrespondingAssociationEndMember.RelationshipMultiplicity != RelationshipMultiplicity.
One
&&
System\Data\Mapping\Update\Internal\FunctionMappingTranslator.cs (1)
245
if (endMember.RelationshipMultiplicity == RelationshipMultiplicity.
One
)
System\Data\Mapping\ViewGeneration\QueryRewriting\FragmentQueryKB.cs (3)
114
if (constraint.FromRole.RelationshipMultiplicity.Equals(RelationshipMultiplicity.
One
))
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\Validation\ForeignConstraint.cs (1)
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\Converter.cs (1)
814
if (somRelationshipEnd.Multiplicity == RelationshipMultiplicity.
One
)
System\Data\Metadata\Edm\LightweightCodeGenerator.cs (1)
494
case RelationshipMultiplicity.
One
:
System\Data\Metadata\Helper.cs (1)
158
it.RelationshipMultiplicity.Equals(RelationshipMultiplicity.
One
)))
System\Data\Objects\DataClasses\EntityReference_TResultType.cs (1)
185
if (!((AssociationType)base.RelationMetadata).IsForeignKey && ToEndMember.RelationshipMultiplicity == RelationshipMultiplicity.
One
)
System\Data\Objects\DataClasses\RelatedEnd.cs (1)
1802
ToEndMember.RelationshipMultiplicity == RelationshipMultiplicity.
One
) &&
System\Data\Objects\DataClasses\RelationshipManager.cs (2)
361
return CreateRelatedEnd<TSourceEntity, TTargetEntity>(navigation, sourceRoleMultiplicity, RelationshipMultiplicity.
One
, existingRelatedEnd) as EntityReference<TTargetEntity>;
940
case RelationshipMultiplicity.
One
:
System\Data\Objects\EntityEntry.cs (1)
2553
if (multiplicity == RelationshipMultiplicity.
One
||
System\Data\Objects\Internal\LazyLoadBehavior.cs (1)
135
else if (multiplicity == RelationshipMultiplicity.
One
|| multiplicity == RelationshipMultiplicity.ZeroOrOne)
System\Data\Objects\Internal\ObjectSpanRewriter.cs (1)
697
(RelationshipMultiplicity.
One
== toEnd.RelationshipMultiplicity ||
System\Data\Objects\ObjectStateManager.cs (3)
929
if ((endMember.RelationshipMultiplicity == RelationshipMultiplicity.
One
||
1023
case RelationshipMultiplicity.
One
:
1211
case RelationshipMultiplicity.
One
:
System\Data\Query\PlanCompiler\ConstraintManager.cs (1)
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\JoinGraph.cs (1)
2041
return TryEliminateRightTable(joinEdge, fkConstraint.ChildKeys.Count, fkConstraint.ChildMultiplicity == md.RelationshipMultiplicity.
One
);
System\Data\Query\PlanCompiler\PreProcessor.cs (1)
482
navigateOp.ToEnd.RelationshipMultiplicity == RelationshipMultiplicity.
One
))
System.Data.Entity.Design (3)
System\Data\Entity\Design\Common\MetadataItemSerializer.cs (1)
344
case RelationshipMultiplicity.
One
:
System\Data\Entity\Design\EntityModelSchemaGenerator.cs (1)
966
return new KeyValuePair<string, RelationshipMultiplicity>(storeConstraint.FromRole.Name, RelationshipMultiplicity.
One
);
System\Data\Entity\Design\EntityStoreSchemaGenerator.cs (1)
787
RelationshipMultiplicity pkMultiplicity = someFkColmnsAreNullable ? RelationshipMultiplicity.ZeroOrOne : RelationshipMultiplicity.
One
;
System.Data.Services (1)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (1)
1696
else if (RelationshipMultiplicity.
One
== multiplicity)
System.Web.DynamicData (3)
DynamicData\ModelProviders\EFAssociationProvider.cs (3)
83
navigationProperty.FromEndMember.RelationshipMultiplicity == RelationshipMultiplicity.
One
) ||
84
(navigationProperty.ToEndMember.RelationshipMultiplicity == RelationshipMultiplicity.
One
&&
105
navigationProperty.FromEndMember.RelationshipMultiplicity == RelationshipMultiplicity.
One
) {
System.Web.Entity (2)
System\Data\WebControls\EntityDataSourceUtil.cs (2)
841
if (toMult == RelationshipMultiplicity.
One
||
842
(toMult == RelationshipMultiplicity.ZeroOrOne && (!forKey || fromMult != RelationshipMultiplicity.
One
) ))