src/Shared/EntityFramework/Internal/EntityEntries/InternalPropertyEntry.cs
// <summary>
// Sets the given value directly onto the underlying entity object.
// </summary>
// <param name="value"> The value. </param>
// <returns> True if the property had a setter that we could attempt to call; false if no setter was available. </returns>
Sets the given value directly onto the underlying entity object.
Sets the given value directly onto the underlying entity object .
private bool SetCurrentValueOnClrObject(object value)
        {
            if (Setter == null)
            {
                return false;
            }
            if (Getter == null
                || !DbHelpers.PropertyValuesEqual(value, Getter(InternalEntityEntry.Entity)))
            {
                Setter(InternalEntityEntry.Entity, value);
                if (EntryMetadata.IsMapped
                    &&
                    (InternalEntityEntry.State == EntityState.Modified
                     || InternalEntityEntry.State == EntityState.Unchanged))
                {
                    IsModified = true;
                }
            }
            return true;
        }
private bool SetCurrentValueOnClrObject ( object value ) { if ( Setter == null ) { return false ; } if ( Getter == null || ! DbHelpers . PropertyValuesEqual ( value , Getter ( InternalEntityEntry . Entity ) ) ) { Setter ( InternalEntityEntry . Entity , value ) ; if ( EntryMetadata . IsMapped && ( InternalEntityEntry . State == EntityState . Modified || InternalEntityEntry . State == EntityState . Unchanged ) ) { IsModified = true ; } } return true ; }
Sets the given value directly onto the underlying entity object.
Sets the given value directly onto the underlying entity object .
True if the property had a setter that we could attempt to call; false if no setter was available.
True if the property had a setter that we could attempt to call ; false if no setter was available .
value
object
None