3

I'm refactoring some code currently implemented in stored procedures to use LinqToSql (for use in training). Is it possible to use SQL functions in a linqToSql Query?

ThinkingStiff
  • 64,767
  • 30
  • 146
  • 239
Danimal
  • 7,672
  • 8
  • 47
  • 57

2 Answers2

1

Here is some helpful information from a MSDN Forum Post. Soundex and LINQ.

Mitchel Sellers
  • 62,228
  • 14
  • 110
  • 173
0

I haven't tried it myself yet but the below method originally posted here seems to be the best possible solution.

    [Function(Name="SoundEx", IsComposable = true)]
    public string SoundsLike(string input)
    {
        throw new NotImplementedException();
    }
Community
  • 1
  • 1
jpierson
  • 16,435
  • 14
  • 105
  • 149