src/Shared/EntityFramework/Core/Mapping/ViewValidator.cs
// <summary>
// Gets all entity types in scope for this view.
// </summary>
Gets all entity types in scope for this view.
Gets all entity types in scope for this view .
private IEnumerable<EntityType> GetEntityTypes()
            {
                if (_includeSubtypes)
                {
                    return MetadataHelper.GetTypeAndSubtypesOf(_elementType, EdmItemCollection, true).OfType<EntityType>();
                }
                else if (_elementType.BuiltInTypeKind
                         == BuiltInTypeKind.EntityType)
                {
                    return Enumerable.Repeat((EntityType)_elementType, 1);
                }
                else
                {
                    return Enumerable.Empty<EntityType>();
                }
            }
private IEnumerable < EntityType > GetEntityTypes ( ) { if ( _includeSubtypes ) { return MetadataHelper . GetTypeAndSubtypesOf ( _elementType , EdmItemCollection , true ) . OfType < EntityType > ( ) ; } else if ( _elementType . BuiltInTypeKind == BuiltInTypeKind . EntityType ) { return Enumerable . Repeat ( ( EntityType ) _elementType , 1 ) ; } else { return Enumerable . Empty < EntityType > ( ) ; } }
Gets all entity types in scope for this view.
Gets all entity types in scope for this view .
// Return all entity types in the hierarchy for OfType or 'complete' views. // Yield single entity type for OfType(only ) views. // For association set views, there are no entity types involved.