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