src/Shared/EntityFramework/Core/SchemaObjectModel/EntityKeyElement.cs
// <summary>
// Used during the resolve phase to resolve the type name to the object that represents that type
// </summary>
Used during the resolve phase to resolve the type name to the object that represents that type
Used during the resolve phase to resolve the type name to the object that represents that type
internal override void ResolveTopLevelNames()
        {
            Debug.Assert(_keyProperties != null, "xsd should have verified that there should be atleast one property ref element");
            foreach (var property in _keyProperties)
            {
                if (!property.ResolveNames((SchemaEntityType)ParentElement))
                {
                    AddError(
                        ErrorCode.InvalidKey, EdmSchemaErrorSeverity.Error,
                        Strings.InvalidKeyNoProperty(ParentElement.FQName, property.Name));
                }
            }
        }
internal override void ResolveTopLevelNames ( ) { Debug . Assert ( _keyProperties != null , " " ) ; foreach ( var property in _keyProperties ) { if ( ! property . ResolveNames ( ( SchemaEntityType ) ParentElement ) ) { AddError ( ErrorCode . InvalidKey , EdmSchemaErrorSeverity . Error , Strings . InvalidKeyNoProperty ( ParentElement . FQName , property . Name ) ) ; } } }
Used during the resolve phase to resolve the type name to the object that represents that type
Used during the resolve phase to resolve the type name to the object that represents that type