src/Shared/EntityFramework/Core/Objects/DataClasses/StructuralObject.cs
/// <summary>Validates that the property is not null, and throws if it is.</summary>
/// <returns>
/// The <see cref="T:System.Data.Entity.Spatial.DbGeography" /> value being set.
/// </returns>
/// <param name="value">
/// The <see cref="T:System.Data.Entity.Spatial.DbGeography" /> value to be checked.
/// </param>
/// <param name="isNullable">Flag indicating if this property is allowed to be null.</param>
/// <param name="propertyName">Name of the property that is being validated.</param>
/// <exception cref="T:System.Data.ConstraintException">The value is null for a non-nullable property.</exception>
Validates that the property is not null, and throws if it is.
Validates that the property is not null and throws if it is .
protected internal static DbGeography SetValidValue(DbGeography value, bool isNullable, string propertyName)
        {
            if (value == null)
            {
                if (!isNullable)
                {
                    EntityUtil.ThrowPropertyIsNotNullable(propertyName);
                }
            }
            return value;
        }
protected internal static DbGeography SetValidValue ( DbGeography value , bool isNullable , string propertyName ) { if ( value == null ) { if ( ! isNullable ) { EntityUtil . ThrowPropertyIsNotNullable ( propertyName ) ; } } return value ; }
Validates that the property is not null, and throws if it is.
Validates that the property is not null and throws if it is .
The  value being set.
The value being set .
The value is null for a non-nullable property.
The value is null for a non - nullable property .
value
DbGeography
The  value to be checked.
The value to be checked .
isNullable
bool
Flag indicating if this property is allowed to be null.
Flag indicating if this property is allowed to be null .
propertyName
string
Name of the property that is being validated.
Name of the property that is being validated .