Skip to content

Add translations for REPLICATE/REVERSE sql functions #25470

Description

@maumar

There is no straightforward translation to built-in functions for these, but we could do something like this:

string.Join("", Enumerable.Repeat("foo", 10)) -> REPLICATE('foo', 10)
string.Join('', "foo".Reverse()) -> REVERSE('foo')

Activity

  1. roji commented on Aug 9, 2021

    @roji
    Member

    Maybe EF.Functions.Replicate/Reverse would be better than the more elaborate native constructs...

  2. changed the title [-]Add translations for REPLIATE/REVERSE sql functions[/-] [+]Add translations for REPLICATE/REVERSE sql functions[/+] on Aug 9, 2021
  3. smitpatel commented on Aug 9, 2021

    @smitpatel
    Contributor

    If we are thinking to add into EF.Functions then we should wait for customer feedback. Those would be currently supported by UDFs already.

  4. added this to the Backlog milestone on Aug 10, 2021
  5. magicxor commented on Oct 14, 2024

    @magicxor

    There is already EF.Functions.Reverse in the Npgsql provider: npgsql/efcore.pg#1495
    I believe that it would be logical to have it in the SqlServer provider as well.

  6. 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

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions