src/Shared/EntityFramework/Core/SchemaObjectModel/ValidationHelper.cs
// <summary>
// Validate that reference type is an entity type.
// </summary>
// <param name="element"> Schema element being validated. Must not be null. </param>
// <param name="type"> Resolved type (from declaration on the element). Possibly null. </param>
Validate that reference type is an entity type.
Validate that reference type is an entity type .
internal static void ValidateRefType(SchemaElement element, SchemaType type)
        {
            DebugCheck.NotNull(element);
            if (type != null
                && !(type is SchemaEntityType))
            {
                element.AddError(
                    ErrorCode.ReferenceToNonEntityType, EdmSchemaErrorSeverity.Error, Strings.ReferenceToNonEntityType(type.FQName));
            }
        }
internal static void ValidateRefType ( SchemaElement element , SchemaType type ) { DebugCheck . NotNull ( element ) ; if ( type != null && ! ( type is SchemaEntityType ) ) { element . AddError ( ErrorCode . ReferenceToNonEntityType , EdmSchemaErrorSeverity . Error , Strings . ReferenceToNonEntityType ( type . FQName ) ) ; } }
Validate that reference type is an entity type.
Validate that reference type is an entity type .
// Ref type refers to non entity type.
element
SchemaElement
Schema element being validated. Must not be null.
Schema element being validated . Must not be null .
type
SchemaType
Resolved type (from declaration on the element). Possibly null.
Resolved type ( from declaration on the element ) . Possibly null .