Visitar URL original
Support for translating array_remove function · Issue #3078 · npgsql/efcore.pg · GitHub
Skip to content

Support for translating array_remove function #3078

Description

@mojtabakaviani

Please support for translating array_remove to remove an element from array data type in update queries.
same array_agg best place is FE.Functions.

EF.Functions.ArrayRemove<T>(IEnumrable<T>, T)

Activity

  1. modified the milestones: Backlog, 9.0.0 on Feb 6, 2024
  2. roji commented on Feb 6, 2024

    @roji
    Member

    Tentatively putting in 9.0 in case I get time to work on this. Could be a relatively good issue for contributors.

  3. tolgacakir commented on Oct 19, 2024

    @tolgacakir

    Hi @roji I can support for this issue

  4. mojtabakaviani commented on Oct 19, 2024

    @mojtabakaviani
    Author

    Hi @roji and @tolgacakir, i work on it!

  5. self-assigned this
    on Oct 26, 2024
  6. added a commit that references this issue on Oct 26, 2024
    8c216ad
  7. roji commented on Oct 26, 2024

    @roji
    Member

    @mojtabakaviani submitted #3328. Instead of adding EF.Functions.ArrayRemove(), this recognizes array.Where(a => a != i) and translates that to PG array_remove (it's always preferable to use regular LINQ concepts rather than introducing a new EF.Functions function).

  8. added a commit that references this issue on Oct 26, 2024
    9ad7c8f
  9. added a commit that references this issue on Oct 26, 2024
    1e3b9b2
  10. added a commit that references this issue on Dec 18, 2024
    1b752e3
  11. added theissue type on Jun 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions