src/Shared/EntityFramework/Internal/EntityEntries/InternalEntityEntry.cs
// <summary>
// Uses EDM metadata to validate that the property name exists in the model and represents a scalar or
// complex property or exists in the CLR type.
// This method is public and virtual so that it can be mocked.
// </summary>
// <param name="propertyName"> The property name. </param>
// <param name="declaringType"> The type on which the property is declared. </param>
// <param name="requestedType"> The type of object requested, which may be 'object' if any type can be accepted. </param>
// <returns> Metadata for the property. </returns>
Uses EDM metadata to validate that the property name exists in the model and represents a scalar or
complex property or exists in the CLR type.
This method is public and virtual so that it can be mocked.
Uses EDM metadata to validate that the property name exists in the model and represents a scalar or complex property or exists in the CLR type . This method is public and virtual so that it can be mocked .
public virtual PropertyEntryMetadata ValidateAndGetPropertyMetadata(
            string propertyName, Type declaringType, Type requestedType)
        {
            return PropertyEntryMetadata.ValidateNameAndGetMetadata(
                _internalContext, declaringType, requestedType, propertyName);
        }
public virtual PropertyEntryMetadata ValidateAndGetPropertyMetadata ( string propertyName , Type declaringType , Type requestedType ) { return PropertyEntryMetadata . ValidateNameAndGetMetadata ( _internalContext , declaringType , requestedType , propertyName ) ; }
Uses EDM metadata to validate that the property name exists in the model and represents a scalar or
complex property or exists in the CLR type.
Uses EDM metadata to validate that the property name exists in the model and represents a scalar or complex property or exists in the CLR type .
Metadata for the property.
Metadata for the property .
propertyName
string
The property name.
The property name .
declaringType
Type
The type on which the property is declared.
The type on which the property is declared .
requestedType
Type
The type of object requested, which may be 'object' if any type can be accepted.
The type of object requested which may be ' object ' if any type can be accepted .