1 implementation of IEntityStateEntry
System.Data.Entity (1)
System\Data\Objects\ObjectStateEntry.cs (1)
31
public abstract class ObjectStateEntry :
IEntityStateEntry
, IEntityChangeTracker
123 references to IEntityStateEntry
System.Data.Entity (123)
System\Data\Common\EntityUtil.cs (9)
1615
static private IEnumerable<ObjectStateEntry> ProcessStateEntries(IEnumerable<
IEntityStateEntry
> stateEntries)
1628
IEntityStateEntry
stateEntry, string type, string typeName)
1634
new List<
IEntityStateEntry
>() { stateEntry });
1637
static internal UpdateException Update(string message, Exception innerException, params
IEntityStateEntry
[] stateEntries) {
1638
return Update(message, innerException, (IEnumerable<
IEntityStateEntry
>)stateEntries);
1640
static internal UpdateException Update(string message, Exception innerException, IEnumerable<
IEntityStateEntry
> stateEntries)
1644
static internal OptimisticConcurrencyException UpdateConcurrency(long rowsAffected, Exception innerException, IEnumerable<
IEntityStateEntry
> stateEntries)
1650
int minimumCount, int? maximumCount, string entitySetName, int actualCount, string otherEndPluralName,
IEntityStateEntry
stateEntry) {
1669
static internal UpdateException UpdateEntityMissingConstraintViolation(string relationshipSetName, string endName,
IEntityStateEntry
stateEntry) {
System\Data\IEntityStateManager.cs (4)
24
IEnumerable<
IEntityStateEntry
> GetEntityStateEntries(EntityState state);
25
IEnumerable<
IEntityStateEntry
> FindRelationshipsByKey(EntityKey key);
26
IEntityStateEntry
GetEntityStateEntry(EntityKey key);
27
bool TryGetEntityStateEntry(EntityKey key, out
IEntityStateEntry
stateEntry);
System\Data\Mapping\Update\Internal\DynamicUpdateCommand.cs (5)
284
internal override IList<
IEntityStateEntry
> GetStateEntries(UpdateTranslator translator)
286
List<
IEntityStateEntry
> stateEntries = new List<
IEntityStateEntry
>(2);
289
foreach (
IEntityStateEntry
stateEntry in SourceInterpreter.GetAllStateEntries(
298
foreach (
IEntityStateEntry
stateEntry in SourceInterpreter.GetAllStateEntries(
System\Data\Mapping\Update\Internal\ExtractedStateEntry.cs (2)
26
internal readonly
IEntityStateEntry
Source;
28
internal ExtractedStateEntry(UpdateTranslator translator,
IEntityStateEntry
stateEntry)
System\Data\Mapping\Update\Internal\ExtractorMetadata.cs (5)
133
internal PropagatorResult RetrieveMember(
IEntityStateEntry
stateEntry, IExtendedDataRecord record, bool useCurrentValues,
198
private PropagatorResult CreateEntityKeyResult(
IEntityStateEntry
stateEntry, EntityKey entityKey)
221
IEntityStateEntry
entityEntry = stateEntry.StateManager.GetEntityStateEntry(entityKey);
246
private PropagatorResult CreateSimpleResult(
IEntityStateEntry
stateEntry, IExtendedDataRecord record, MemberInformation memberInformation,
300
internal static PropagatorResult ExtractResultFromRecord(
IEntityStateEntry
stateEntry, bool isModified, IExtendedDataRecord record,
System\Data\Mapping\Update\Internal\FunctionMappingTranslator.cs (11)
85
var stateEntries = new HashSet<
IEntityStateEntry
> { stateEntry.Source };
95
var currentReferenceEnds = new Dictionary<AssociationEndMember,
IEntityStateEntry
>();
96
var originalReferenceEnds = new Dictionary<AssociationEndMember,
IEntityStateEntry
>();
139
HashSet<
IEntityStateEntry
> stateEntries,
140
Dictionary<AssociationEndMember,
IEntityStateEntry
> currentReferenceEnd,
141
Dictionary<AssociationEndMember,
IEntityStateEntry
> originalReferenceEnd,
143
IEntityStateEntry
candidateEntry)
146
Action<DbDataRecord, Action<
IEntityStateEntry
>> findMatch = (record, registerTarget) =>
227
private void BindFunctionParameters(UpdateTranslator translator, ExtractedStateEntry stateEntry, StorageModificationFunctionMapping functionMapping, FunctionUpdateCommand command, Dictionary<AssociationEndMember,
IEntityStateEntry
> currentReferenceEnds, Dictionary<AssociationEndMember,
IEntityStateEntry
> originalReferenceEnds)
239
IEntityStateEntry
relationshipEntry;
System\Data\Mapping\Update\Internal\FunctionUpdateCommand.cs (5)
36
System.Collections.ObjectModel.ReadOnlyCollection<
IEntityStateEntry
> stateEntries,
54
private readonly System.Collections.ObjectModel.ReadOnlyCollection<
IEntityStateEntry
> m_stateEntries;
126
internal override IList<
IEntityStateEntry
> GetStateEntries(UpdateTranslator translator)
368
IEntityStateEntry
thisParent = this.m_stateEntries[0];
369
IEntityStateEntry
otherParent = other.m_stateEntries[0];
System\Data\Mapping\Update\Internal\KeyManager.cs (8)
61
internal void AddReferentialConstraint(
IEntityStateEntry
dependentStateEntry, int dependentIdentifier, int principalIdentifier)
78
LinkedList<
IEntityStateEntry
>.Add(ref dependentInfo.DependentStateEntries, dependentStateEntry);
149
internal IEnumerable<
IEntityStateEntry
> GetDependentStateEntries(int identifier)
151
return LinkedList<
IEntityStateEntry
>.Enumerate(_identifiers[identifier].DependentStateEntries);
297
internal void RegisterKeyValueForAddedEntity(
IEntityStateEntry
addedEntry)
377
List<
IEntityStateEntry
> stateEntriesInCycle = new List<
IEntityStateEntry
>();
520
internal LinkedList<
IEntityStateEntry
> DependentStateEntries;
System\Data\Mapping\Update\Internal\Propagator.JoinPropagator.cs (2)
316
List<
IEntityStateEntry
> stateEntries = new List<
IEntityStateEntry
>();
System\Data\Mapping\Update\Internal\PropagatorResult.cs (7)
83
internal virtual
IEntityStateEntry
StateEntry
356
internal static PropagatorResult CreateKeyValue(PropagatorFlags flags, object value,
IEntityStateEntry
stateEntry, int identifier)
363
internal KeyValue(PropagatorFlags flags, object value,
IEntityStateEntry
stateEntry, int identifier, KeyValue next)
373
private readonly
IEntityStateEntry
m_stateEntry;
377
internal override
IEntityStateEntry
StateEntry
461
internal static PropagatorResult CreateServerGenKeyValue(PropagatorFlags flags, object value,
IEntityStateEntry
stateEntry, int identifier, int recordOrdinal)
468
internal ServerGenKeyValue(PropagatorFlags flags, object value,
IEntityStateEntry
stateEntry, int identifier, int recordOrdinal, KeyValue next)
System\Data\Mapping\Update\Internal\RecordConverter.cs (3)
54
internal PropagatorResult ConvertOriginalValuesToPropagatorResult(
IEntityStateEntry
stateEntry, ModifiedPropertiesBehavior modifiedPropertiesBehavior)
69
internal PropagatorResult ConvertCurrentValuesToPropagatorResult(
IEntityStateEntry
stateEntry, ModifiedPropertiesBehavior modifiedPropertiesBehavior)
74
private PropagatorResult ConvertStateEntryToPropagatorResult(
IEntityStateEntry
stateEntry, bool useCurrentValues, ModifiedPropertiesBehavior modifiedPropertiesBehavior)
System\Data\Mapping\Update\Internal\RelationshipConstraintValidator.cs (9)
35
m_impliedRelationships = new Dictionary<DirectionalRelationship,
IEntityStateEntry
>(EqualityComparer<DirectionalRelationship>.Default);
50
private readonly Dictionary<DirectionalRelationship,
IEntityStateEntry
> m_impliedRelationships;
68
internal void RegisterEntity(
IEntityStateEntry
stateEntry)
135
internal void RegisterAssociation(AssociationSet associationSet, IExtendedDataRecord record,
IEntityStateEntry
stateEntry)
179
foreach (KeyValuePair<DirectionalRelationship,
IEntityStateEntry
> expected in m_impliedRelationships)
182
IEntityStateEntry
stateEntry = expected.Value;
257
IEntityStateEntry
entityEntry;
374
internal readonly
IEntityStateEntry
StateEntry;
388
internal DirectionalRelationship(EntityKey toEntityKey, AssociationEndMember fromEnd, AssociationEndMember toEnd, AssociationSet associationSet,
IEntityStateEntry
stateEntry)
System\Data\Mapping\Update\Internal\SourceInterpreter.cs (5)
26
m_stateEntries = new List<
IEntityStateEntry
>();
31
private readonly List<
IEntityStateEntry
> m_stateEntries;
42
internal static ReadOnlyCollection<
IEntityStateEntry
> GetAllStateEntries(PropagatorResult source, UpdateTranslator translator,
52
return new ReadOnlyCollection<
IEntityStateEntry
>(interpreter.m_stateEntries);
83
foreach (
IEntityStateEntry
stateEntry in m_translator.KeyManager.GetDependentStateEntries(source.Identifier))
System\Data\Mapping\Update\Internal\TableChangeProcessor.cs (5)
155
List<
IEntityStateEntry
> stateEntries = new List<
IEntityStateEntry
>();
234
HashSet<
IEntityStateEntry
> commonDependents = null;
237
var dependents = new HashSet<
IEntityStateEntry
>();
249
commonDependents = new HashSet<
IEntityStateEntry
>(dependents);
System\Data\Mapping\Update\Internal\UpdateCommand.cs (4)
94
internal abstract IList<
IEntityStateEntry
> GetStateEntries(UpdateTranslator translator);
106
IList<
IEntityStateEntry
> stateEntries = GetStateEntries(translator);
108
foreach (
IEntityStateEntry
stateEntry in stateEntries)
136
foreach (
IEntityStateEntry
stateEntry in stateEntries)
System\Data\Mapping\Update\Internal\UpdateCompiler.cs (2)
107
List<
IEntityStateEntry
> stateEntries = new List<
IEntityStateEntry
>();
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (21)
56
m_stateEntries = new List<
IEntityStateEntry
>();
89
private readonly List<
IEntityStateEntry
> m_stateEntries;
166
internal void RegisterReferentialConstraints(
IEntityStateEntry
stateEntry)
219
private void RegisterEntityReferentialConstraints(
IEntityStateEntry
stateEntry, bool currentValues)
275
IEntityStateEntry
existingPrincipal;
362
internal IEnumerable<
IEntityStateEntry
> GetRelationships(EntityKey entityKey)
459
private IEnumerable<
IEntityStateEntry
> DetermineStateEntriesFromSource(UpdateCommand source)
463
return Enumerable.Empty<
IEntityStateEntry
>();
595
foreach (
IEntityStateEntry
stateEntry in m_stateEntries)
763
HashSet<
IEntityStateEntry
> stateEntries = new HashSet<
IEntityStateEntry
>();
839
foreach (
IEntityStateEntry
addedEntry in m_stateManager.GetEntityStateEntries(EntityState.Added))
849
foreach (
IEntityStateEntry
modifiedEntry in m_stateManager.GetEntityStateEntries(EntityState.Modified | EntityState.Added | EntityState.Deleted))
854
foreach (
IEntityStateEntry
modifiedEntry in m_stateManager.GetEntityStateEntries(EntityState.Modified | EntityState.Added | EntityState.Deleted))
874
IEntityStateEntry
requiredEntry;
893
IEntityStateEntry
optionalEntry;
907
IEntityStateEntry
valueEntry;
922
private void ValidateAndRegisterStateEntry(
IEntityStateEntry
stateEntry)
1011
IEntityStateEntry
endEntry;
1020
private void ValidateRecord(EntitySetBase extent, IExtendedDataRecord record,
IEntityStateEntry
entry)
1065
private void LoadStateEntry(
IEntityStateEntry
stateEntry)
System\Data\Objects\EntityEntry.cs (6)
764
internal struct RelationshipEndEnumerable : IEnumerable<RelationshipEntry>, IEnumerable<
IEntityStateEntry
>
777
IEnumerator<
IEntityStateEntry
> IEnumerable<
IEntityStateEntry
>.GetEnumerator()
819
internal struct RelationshipEndEnumerator : IEnumerator<RelationshipEntry>, IEnumerator<
IEntityStateEntry
>
833
IEntityStateEntry
IEnumerator<
IEntityStateEntry
>.Current
System\Data\Objects\ObjectStateEntry.cs (3)
117
BitArray
IEntityStateEntry
.ModifiedProperties { get { return this.ModifiedProperties; } }
238
IEntityStateManager
IEntityStateEntry
.StateManager
249
bool
IEntityStateEntry
.IsKeyEntry
System\Data\Objects\ObjectStateManager.cs (7)
1672
IEnumerable<
IEntityStateEntry
> IEntityStateManager.FindRelationshipsByKey(EntityKey key)
1782
IEnumerable<
IEntityStateEntry
> IEntityStateManager.GetEntityStateEntries(EntityState state)
1787
yield return (
IEntityStateEntry
)stateEntry;
2417
IEntityStateEntry
IEntityStateManager.GetEntityStateEntry(EntityKey key)
2419
return (
IEntityStateEntry
)GetEntityEntry(key);
2507
bool IEntityStateManager.TryGetEntityStateEntry(EntityKey key, out
IEntityStateEntry
entry)
2516
entry = (
IEntityStateEntry
)objectStateEntry;