System.Data.Entity/System/Data/Mapping/Update/Internal/FunctionUpdateCommand.cs
/// <summary>
/// Gets modification operator corresponding to the given entity state.
/// </summary>
Gets modification operator corresponding to the given entity state.
Gets modification operator corresponding to the given entity state .
private static ModificationOperator GetModificationOperator(EntityState state)
        {
            switch (state)
            {
                case EntityState.Modified:
                case EntityState.Unchanged:
                    return ModificationOperator.Update;
                case EntityState.Added:
                    return ModificationOperator.Insert;
                case EntityState.Deleted:
                    return ModificationOperator.Delete;
                default:
                    Debug.Fail("unexpected entity state " + state);
                    return default(ModificationOperator);
            }
        }
private static ModificationOperator GetModificationOperator ( EntityState state ) { switch ( state ) { case EntityState . Modified : case EntityState . Unchanged : return ModificationOperator . Update ; case EntityState . Added : return ModificationOperator . Insert ; case EntityState . Deleted : return ModificationOperator . Delete ; default : Debug . Fail ( " " + state ) ; return default ( ModificationOperator ) ; } }
Gets modification operator corresponding to the given entity state.
Gets modification operator corresponding to the given entity state .
// unchanged entities correspond to updates (consider the case where // the entity is not being modified but a collocated relationship is)
state
EntityState