src/Shared/EntityFramework/Internal/EntityEntries/InternalEntityEntry.cs
// <summary>
// Validates that a dictionary can be obtained for the state of the entity represented by this entry.
// </summary>
// <param name="method"> The method name being used to request a dictionary. </param>
// <param name="invalidState"> The state that is invalid for the request being processed. </param>
Validates that a dictionary can be obtained for the state of the entity represented by this entry.
Validates that a dictionary can be obtained for the state of the entity represented by this entry .
private void ValidateStateToGetValues(string method, EntityState invalidState)
        {
            ValidateNotDetachedAndInitializeRelatedEnd(method);
            if (State == invalidState)
            {
                throw Error.DbPropertyValues_CannotGetValuesForState(method, State);
            }
        }
private void ValidateStateToGetValues ( string method , EntityState invalidState ) { ValidateNotDetachedAndInitializeRelatedEnd ( method ) ; if ( State == invalidState ) { throw Error . DbPropertyValues_CannotGetValuesForState ( method , State ) ; } }
Validates that a dictionary can be obtained for the state of the entity represented by this entry.
Validates that a dictionary can be obtained for the state of the entity represented by this entry .
method
string
The method name being used to request a dictionary.
The method name being used to request a dictionary .
invalidState
EntityState
The state that is invalid for the request being processed.
The state that is invalid for the request being processed .