Can I use Soundex (or other SQL functions) in LinqToSql?

I am reorganizing some code that is currently being implemented in stored procedures for using LinqToSql (for use in training). Is it possible to use SQL functions in linqToSql query?

+3
source share
2 answers

Here is some helpful information from the MSDN Forum post. Soundex and LINQ .

+1
source

I have not tried this myself yet, but the method originally posted here seems to be the best solution.

    [Function(Name="SoundEx", IsComposable = true)]
    public string SoundsLike(string input)
    {
        throw new NotImplementedException();
    }
0
source

Source: https://habr.com/ru/post/1697735/


All Articles