Ejemplo n.º 1
0
        // <summary>
        // Gets all (concrete) entity types implied by this type mapping.
        // </summary>
        internal IEnumerable <EntityType> GetMappedEntityTypes(ItemCollection itemCollection)
        {
            const bool includeAbstractTypes = false;

            return(EntityTypes.Concat(
                       IsOfTypeEntityTypes.SelectMany(
                           entityType =>
                           MetadataHelper.GetTypeAndSubtypesOf(entityType, itemCollection, includeAbstractTypes)
                           .Cast <EntityType>())));
        }