36 references to ZeroOrOne
System.Data.Entity (25)
System\Data\Common\CommandTrees\ValueExpressions.cs (1)
587
targetEnd.RelationshipMultiplicity != RelationshipMultiplicity.
ZeroOrOne
)
System\Data\Common\EntitySql\SemanticAnalyzer.cs (2)
1594
if (toEnd.RelationshipMultiplicity != RelationshipMultiplicity.One && toEnd.RelationshipMultiplicity != RelationshipMultiplicity.
ZeroOrOne
)
1609
e.RelationshipMultiplicity == RelationshipMultiplicity.
ZeroOrOne
)).ToArray();
System\Data\Common\Internal\Materialization\Shaper.cs (2)
288
Debug.Assert(targetMember.RelationshipMultiplicity == RelationshipMultiplicity.One || targetMember.RelationshipMultiplicity == RelationshipMultiplicity.
ZeroOrOne
);
324
case RelationshipMultiplicity.
ZeroOrOne
:
System\Data\Common\Utils\MetadataHelper.cs (2)
722
multiplicity == RelationshipMultiplicity.
ZeroOrOne
)
735
multiplicity == RelationshipMultiplicity.
ZeroOrOne
)
System\Data\EntityModel\SchemaObjectModel\ReferentialConstraint.cs (2)
97
? RelationshipMultiplicity.
ZeroOrOne
102
? RelationshipMultiplicity.
ZeroOrOne
System\Data\EntityModel\SchemaObjectModel\RelationshipEnd.cs (1)
274
multiplicity = RelationshipMultiplicity.
ZeroOrOne
;
System\Data\Mapping\StorageMappingItemCollection.ViewDictionary.cs (1)
305
if (rc.FromRole.RelationshipMultiplicity == RelationshipMultiplicity.
ZeroOrOne
)
System\Data\Mapping\StorageMappingItemLoader.cs (1)
4057
toEnd.CorrespondingAssociationEndMember.RelationshipMultiplicity != RelationshipMultiplicity.
ZeroOrOne
)
System\Data\Metadata\Edm\LightweightCodeGenerator.cs (1)
493
case RelationshipMultiplicity.
ZeroOrOne
:
System\Data\Metadata\Helper.cs (2)
163
|| (it.RelationshipMultiplicity.Equals(RelationshipMultiplicity.
ZeroOrOne
))));
168
(it.RelationshipMultiplicity.Equals(RelationshipMultiplicity.
ZeroOrOne
))))
System\Data\Objects\DataClasses\RelatedEnd.cs (1)
1801
((ToEndMember.RelationshipMultiplicity == RelationshipMultiplicity.
ZeroOrOne
||
System\Data\Objects\DataClasses\RelationshipManager.cs (1)
939
case RelationshipMultiplicity.
ZeroOrOne
:
System\Data\Objects\EntityEntry.cs (1)
2554
multiplicity == RelationshipMultiplicity.
ZeroOrOne
)
System\Data\Objects\Internal\LazyLoadBehavior.cs (1)
135
else if (multiplicity == RelationshipMultiplicity.One || multiplicity == RelationshipMultiplicity.
ZeroOrOne
)
System\Data\Objects\Internal\ObjectSpanRewriter.cs (1)
698
RelationshipMultiplicity.
ZeroOrOne
== toEnd.RelationshipMultiplicity))
System\Data\Objects\ObjectStateManager.cs (3)
930
endMember.RelationshipMultiplicity == RelationshipMultiplicity.
ZeroOrOne
))
1022
case RelationshipMultiplicity.
ZeroOrOne
:
1212
case RelationshipMultiplicity.
ZeroOrOne
:
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\PreProcessor.cs (1)
481
(navigateOp.ToEnd.RelationshipMultiplicity == RelationshipMultiplicity.
ZeroOrOne
||
System.Data.Entity.Design (4)
System\Data\Entity\Design\Common\MetadataItemSerializer.cs (1)
346
case RelationshipMultiplicity.
ZeroOrOne
:
System\Data\Entity\Design\EntityModelSchemaGenerator.cs (1)
962
if (storeConstraint.FromRole.RelationshipMultiplicity == RelationshipMultiplicity.
ZeroOrOne
&&
System\Data\Entity\Design\EntityStoreSchemaGenerator.cs (2)
787
RelationshipMultiplicity pkMultiplicity = someFkColmnsAreNullable ? RelationshipMultiplicity.
ZeroOrOne
: RelationshipMultiplicity.One;
808
fkMultiplicity = RelationshipMultiplicity.
ZeroOrOne
;
System.Data.Services (1)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (1)
1703
RelationshipMultiplicity.
ZeroOrOne
== multiplicity,
System.Web.DynamicData (3)
DynamicData\ModelProviders\EFAssociationProvider.cs (3)
82
return (navigationProperty.ToEndMember.RelationshipMultiplicity == RelationshipMultiplicity.
ZeroOrOne
&&
85
navigationProperty.FromEndMember.RelationshipMultiplicity == RelationshipMultiplicity.
ZeroOrOne
);
104
if (navigationProperty.ToEndMember.RelationshipMultiplicity == RelationshipMultiplicity.
ZeroOrOne
&&
System.Web.Entity (3)
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 (1)
842
(toMult == RelationshipMultiplicity.
ZeroOrOne
&& (!forKey || fromMult != RelationshipMultiplicity.One) ))