1 implementation of State
System.Data.Entity (1)
System\Data\Objects\ObjectStateEntry.cs (1)
83
public EntityState
State
34 references to State
System.Data.Entity (34)
System\Data\Common\EntityUtil.cs (1)
1670
string message = System.Data.Entity.Strings.Update_MissingRequiredEntity(relationshipSetName, stateEntry.
State
, endName);
System\Data\Mapping\Update\Internal\ExtractedStateEntry.cs (3)
31
this.State = stateEntry.
State
;
34
switch (stateEntry.
State
)
59
Debug.Fail("unexpected IEntityStateEntry.State for entity " + stateEntry.
State
);
System\Data\Mapping\Update\Internal\ExtractorMetadata.cs (1)
222
Debug.Assert(entityEntry.
State
== EntityState.Added,
System\Data\Mapping\Update\Internal\FunctionMappingTranslator.cs (2)
110
if (stateEntries.All(e => e.
State
== EntityState.Unchanged))
162
switch (candidateEntry.
State
)
System\Data\Mapping\Update\Internal\FunctionUpdateCommand.cs (2)
372
int result = (int)GetModificationOperator(thisParent.
State
) -
373
(int)GetModificationOperator(otherParent.
State
);
System\Data\Mapping\Update\Internal\RelationshipConstraintValidator.cs (8)
72
if (EntityState.Added == stateEntry.
State
|| EntityState.Deleted == stateEntry.
State
)
80
EntityType entityType = EntityState.Added == stateEntry.
State
?
187
if (EntityState.Deleted == stateEntry.
State
)
263
(isAdd && EntityState.Added != entityEntry.
State
) ||
264
(!isAdd && EntityState.Deleted != entityEntry.
State
))
445
if (current.StateEntry.
State
== EntityState.Added)
449
else if (current.StateEntry.
State
== EntityState.Deleted)
System\Data\Mapping\Update\Internal\UpdateCommand.cs (4)
112
if (stateEntry.
State
== EntityState.Added)
116
else if (stateEntry.
State
== EntityState.Deleted)
141
bool isAdded = stateEntry.
State
== EntityState.Added;
142
if (isAdded || stateEntry.
State
== EntityState.Deleted)
System\Data\Mapping\Update\Internal\UpdateCompiler.cs (1)
112
if (stateEntries.All(it => (it.
State
== EntityState.Unchanged)))
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (12)
173
DbDataRecord record = stateEntry.
State
== EntityState.Added ?
208
if (stateEntry.
State
== EntityState.Added || stateEntry.
State
== EntityState.Modified)
212
if (stateEntry.
State
== EntityState.Deleted || stateEntry.
State
== EntityState.Modified)
324
if (currentValues && null != existingPrincipal && existingPrincipal.
State
== EntityState.Deleted &&
325
(stateEntry.
State
== EntityState.Added || stateEntry.
State
== EntityState.Modified))
598
if (EntityState.Unchanged != stateEntry.
State
)
937
if (0 != ((EntityState.Added | EntityState.Modified | EntityState.Unchanged) & stateEntry.
State
))
943
if (0 != ((EntityState.Modified | EntityState.Deleted | EntityState.Unchanged) & stateEntry.
State
))
1014
endEntry.
State
== EntityState.Unchanged) // if the entity is being modified, it's already included anyways