src/Shared/EntityFramework/Internal/EntityEntries/InternalPropertyEntry.cs
// <summary>
// Throws if the user attempts to set a complex property to null.
// </summary>
// <param name="value"> The value. </param>
Throws if the user attempts to set a complex property to null.
Throws if the user attempts to set a complex property to null .
private void CheckNotSettingComplexPropertyToNull(object value)
        {
            if (value == null
                && EntryMetadata.IsComplex)
            {
                throw Error.DbPropertyValues_ComplexObjectCannotBeNull(Name, base.EntryMetadata.DeclaringType.Name);
            }
        }
private void CheckNotSettingComplexPropertyToNull ( object value ) { if ( value == null && EntryMetadata . IsComplex ) { throw Error . DbPropertyValues_ComplexObjectCannotBeNull ( Name , base . EntryMetadata . DeclaringType . Name ) ; } }
Throws if the user attempts to set a complex property to null.
Throws if the user attempts to set a complex property to null .
value
object
None