1

I found EF.Functions.TrigramsSimilarityDistance at https://github.com/npgsql/npgsql for postgresql.

And I found a raw sql solution here:

Levenshtein distance in T-SQL

I could use by implementing a stored procedure but I would prefer a SQL or EF function..

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Max
  • 43
  • 6
  • 2
    [Levenshtein distance in T-SQL](https://stackoverflow.com/questions/560709/levenshtein-distance-in-t-sql) has SQL solutions though.. What's wrong with them? – Thom A Jul 29 '22 at 13:32
  • Create a T-SQL function then call it using function mapping https://learn.microsoft.com/en-us/ef/core/querying/user-defined-function-mapping – Charlieface Jul 29 '22 at 13:36
  • Yes, I guess that is what I will have to do, but I was hoping there was a solution with documentation/ support for instance included in a nuget package similar to the one for postgresql – Max Aug 01 '22 at 09:54

0 Answers0