Skip to content

Cosmos: Translate composition over embedded non-primitive collection #16926

Description

@smitpatel
        [ConditionalFact]
        public virtual void Navigation_rewrite_on_owned_collection_with_composition()
        {
            using (var ctx = CreateContext())
            {
                var query = ctx.Set<OwnedPerson>().Select(p => p.Orders.Select(o => o.Id != 42).FirstOrDefault());
                var result = query.ToList();

                Assert.Equal(4, result.Count);
            }
        }

Activity

  1. added this to the Backlog milestone on Aug 5, 2019
  2. ajcvickers commented on Aug 5, 2019

    @ajcvickers
    Contributor
  3. changed the title [-]Cosmos: Translate projection over embeded collection[/-] [+]Cosmos: Translate composition over embedded collection[/+] on Dec 31, 2019
  4. athinadev commented on Dec 17, 2020

    @athinadev

    Please see this too, it should be the same error
    #23704

  5. removed their assignment
    on Sep 14, 2022
  6. AndriySvyryd commented on Nov 11, 2022

    @AndriySvyryd
    Member

    Note to implementer: We would need to create an abstraction to be used in the server query that could represent a scalar, an object or a collection. Only scalars and scalars collections would have type mapping. Shaper must also change to allow composition and this might impact include implementation.

  7. self-assigned this
    on Jun 4, 2024
  8. 8 remaining items

  9. added 3 commits that reference this issue on Jun 15, 2024
    39f890e
    92f348b
    f4c0b07
  10. added a commit that references this issue on Jun 20, 2024
    531c238
  11. modified the milestones: 9.0.0, on Jun 21, 2024
  12. modified the milestones: , 9.0.0 on Oct 12, 2024
  13. added theissue type on Jun 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions