src/Shared/EntityFramework/ModelConfiguration/Configuration/Properties/Primitive/PrimitivePropertyConfiguration.cs
// <summary>Gets a value that indicates whether the provided model is compatible with the current model provider.</summary>
// <returns>true if the provided model is compatible with the current model provider; otherwise, false.</returns>
// <param name="thisConfiguration">The configuration property.</param>
// <param name="other">The property to compare</param>
// <typeparam name="T">The type property.</typeparam>
Gets a value that indicates whether the provided model is compatible with the current model provider.
Gets a value that indicates whether the provided model is compatible with the current model provider .
protected static bool IsCompatible<T>(T? thisConfiguration, T? other)
            where T : struct
        {
            if (thisConfiguration.HasValue)
            {
                if (other.HasValue)
                {
                    return Equals(thisConfiguration.Value, other.Value);
                }
                return true;
            }
            return true;
        }
protected static bool IsCompatible < T > ( T ? thisConfiguration , T ? other ) where T : struct { if ( thisConfiguration . HasValue ) { if ( other . HasValue ) { return Equals ( thisConfiguration . Value , other . Value ) ; } return true ; } return true ; }
Gets a value that indicates whether the provided model is compatible with the current model provider.
Gets a value that indicates whether the provided model is compatible with the current model provider .
true if the provided model is compatible with the current model provider; otherwise, false.
true if the provided model is compatible with the current model provider ; otherwise false .
thisConfiguration
T?
The configuration property.
The configuration property .
other
T?
The property to compare
The property to compare
typeparam
The type property.
The type property .