Skip to content

Cosmos: translate indexing into collection  #25701

Description

@roji
_ = await ctx.Blogs.Where(b => b.Posts[2].Name == "foo").ToListAsync();

Note that since we support primitive collections, this should translate on those too.

Activity

  1. AndriySvyryd commented on Aug 27, 2021

    @AndriySvyryd
    Member

    Related: #16926

  2. added this to the Backlog milestone on Aug 31, 2021
  3. modified the milestones: Backlog, 7.0.0 on Oct 27, 2021
  4. dalokey commented on Mar 29, 2022

    @dalokey

    Really love this package, but without this key feature (and other array functionality), I am very limited and will just have to go back to using the SDK for now

  5. dalokey commented on Mar 30, 2022

    @dalokey

    Really love this package, but without this key feature (and other array functionality), I am very limited and will just have to go back to using the SDK for now

    So because I really enjoy using this package, I wouldn't/couldn't go back to just using the SDK lol. Anyway, I kind of went my own way (and wouldn't expect this to be the best approach) to allow me to switch between EF and the SDK (until all the features I require are available on EF).

    I realised that EF comes with a Database property that has already set the connection using EF's services.AddDbContextFactory().

    So I managed to allow the context to give me a container (without having to do as much work as I would ever do using the SDK) by adding a public property on the defined DbContext class that has a singleton getter (no setter) to get the container :)

    Database.GetCosmosClient().GetContainer("dbName", "containerName");

    This would mostly likely be used for complex queries, not having any issues with commands atm.

    Would love to not have to go this way, but I don't want to write SQL code to get around this.

  6. 19 remaining items

  7. added 4 commits that reference this issue on Jun 15, 2024
    7a85df8
    39f890e
    92f348b
    f4c0b07
  8. added a commit that references this issue on Jun 20, 2024
    531c238
  9. modified the milestones: 9.0.0, on Jun 21, 2024
  10. modified the milestones: , 9.0.0 on Oct 12, 2024
  11. 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