2 types derived from UpdateCommand
System.Data.Entity (2)
System\Data\Mapping\Update\Internal\DynamicUpdateCommand.cs (1)
24
internal sealed class DynamicUpdateCommand :
UpdateCommand
System\Data\Mapping\Update\Internal\FunctionUpdateCommand.cs (1)
25
internal sealed class FunctionUpdateCommand :
UpdateCommand
68 references to UpdateCommand
System.Data.Entity (68)
System\Data\Mapping\Update\Internal\DynamicUpdateCommand.cs (1)
307
internal override int CompareToType(
UpdateCommand
otherCommand)
System\Data\Mapping\Update\Internal\FunctionUpdateCommand.cs (1)
361
internal override int CompareToType(
UpdateCommand
otherCommand)
System\Data\Mapping\Update\Internal\TableChangeProcessor.cs (4)
104
internal List<
UpdateCommand
> CompileCommands(ChangeNode changeNode, UpdateCompiler compiler)
113
List<
UpdateCommand
> commands = new List<
UpdateCommand
>(deleteResults.Count + insertResults.Count);
142
UpdateCommand
updateCommand = compiler.BuildUpdateCommand(deleteResult, insertResult, this);
System\Data\Mapping\Update\Internal\UpdateCommand.cs (11)
33
internal abstract class UpdateCommand : IComparable<
UpdateCommand
>, IEquatable<
UpdateCommand
>
101
KeyToListMap<EntityKey,
UpdateCommand
> addedEntities,
102
KeyToListMap<EntityKey,
UpdateCommand
> deletedEntities,
103
KeyToListMap<EntityKey,
UpdateCommand
> addedRelationships,
104
KeyToListMap<EntityKey,
UpdateCommand
> deletedRelationships)
150
KeyToListMap<EntityKey,
UpdateCommand
> affected = isAdded ? addedRelationships : deletedRelationships;
160
private void AddReferencedEntities(UpdateTranslator translator, PropagatorResult result, KeyToListMap<EntityKey,
UpdateCommand
> referencedEntities)
196
internal abstract int CompareToType(
UpdateCommand
other);
214
public int CompareTo(
UpdateCommand
other)
244
public bool Equals(
UpdateCommand
other)
System\Data\Mapping\Update\Internal\UpdateCommandOrderer.cs (30)
18
internal class UpdateCommandOrderer : Graph<
UpdateCommand
>
47
internal UpdateCommandOrderer(IEnumerable<
UpdateCommand
> commands, UpdateTranslator translator)
48
: base(EqualityComparer<
UpdateCommand
>.Default)
57
foreach (
UpdateCommand
command in commands)
145
Dictionary<int,
UpdateCommand
> predecessors = new Dictionary<int,
UpdateCommand
>();
146
foreach (
UpdateCommand
command in this.Vertices)
164
foreach (
UpdateCommand
command in this.Vertices)
168
UpdateCommand
from;
180
KeyToListMap<ForeignKeyValue,
UpdateCommand
> predecessors = DetermineForeignKeyPredecessors();
192
private void AddForeignKeyEdges(KeyToListMap<ForeignKeyValue,
UpdateCommand
> predecessors)
213
foreach (
UpdateCommand
predecessor in predecessors.EnumerateValues(fk))
245
foreach (
UpdateCommand
predecessor in predecessors.EnumerateValues(fk))
272
private KeyToListMap<ForeignKeyValue,
UpdateCommand
> DetermineForeignKeyPredecessors()
274
KeyToListMap<ForeignKeyValue,
UpdateCommand
> predecessors = new KeyToListMap<ForeignKeyValue,
UpdateCommand
>(
334
KeyToListMap<EntityKey,
UpdateCommand
> addedEntities = new KeyToListMap<EntityKey,
UpdateCommand
>(EqualityComparer<EntityKey>.Default);
335
KeyToListMap<EntityKey,
UpdateCommand
> deletedEntities = new KeyToListMap<EntityKey,
UpdateCommand
>(EqualityComparer<EntityKey>.Default);
336
KeyToListMap<EntityKey,
UpdateCommand
> addedRelationships = new KeyToListMap<EntityKey,
UpdateCommand
>(EqualityComparer<EntityKey>.Default);
337
KeyToListMap<EntityKey,
UpdateCommand
> deletedRelationships = new KeyToListMap<EntityKey,
UpdateCommand
>(EqualityComparer<EntityKey>.Default);
339
foreach (
UpdateCommand
command in this.Vertices)
351
private void AddModelDependencies(KeyToListMap<EntityKey,
UpdateCommand
> producedMap, KeyToListMap<EntityKey,
UpdateCommand
> requiredMap)
356
List<
UpdateCommand
> commandsRequiringKey = keyAndCommands.Value;
358
foreach (
UpdateCommand
commandProducingKey in producedMap.EnumerateValues(key))
360
foreach (
UpdateCommand
commandRequiringKey in commandsRequiringKey)
System\Data\Mapping\Update\Internal\UpdateCompiler.cs (6)
55
internal
UpdateCommand
BuildDeleteCommand(PropagatorResult oldRow, TableChangeProcessor processor)
69
UpdateCommand
command = new DynamicUpdateCommand(processor, m_translator, ModificationOperator.Delete, oldRow, null, commandTree, null);
81
internal
UpdateCommand
BuildUpdateCommand(PropagatorResult oldRow,
131
UpdateCommand
command = new DynamicUpdateCommand(processor, m_translator, ModificationOperator.Update, oldRow, newRow, commandTree, outputIdentifiers);
142
internal
UpdateCommand
BuildInsertCommand(PropagatorResult newRow, TableChangeProcessor processor)
163
UpdateCommand
command = new DynamicUpdateCommand(processor, m_translator, ModificationOperator.Insert, null, newRow, commandTree, outputIdentifiers);
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (15)
388
IEnumerable<
UpdateCommand
> orderedCommands = translator.ProduceCommands();
391
UpdateCommand
source = null;
394
foreach (
UpdateCommand
command in orderedCommands)
419
private IEnumerable<
UpdateCommand
> ProduceCommands()
430
IEnumerable<
UpdateCommand
> dynamicCommands = this.ProduceDynamicCommands();
431
IEnumerable<
UpdateCommand
> functionCommands = this.ProduceFunctionCommands();
433
IEnumerable<
UpdateCommand
> orderedCommands;
434
IEnumerable<
UpdateCommand
> remainder;
447
private void ValidateRowsAffected(long rowsAffected,
UpdateCommand
source)
459
private IEnumerable<IEntityStateEntry> DetermineStateEntriesFromSource(
UpdateCommand
source)
634
private IEnumerable<
UpdateCommand
> ProduceDynamicCommands()
670
foreach (
UpdateCommand
command in change.CompileCommands(changeNode, updateCompiler))
715
private IEnumerable<
UpdateCommand
> ProduceFunctionCommands()
759
private UpdateException DependencyOrderingError(IEnumerable<
UpdateCommand
> remainder)
765
foreach (
UpdateCommand
command in remainder)