3

我正在重构一些当前在存储过程中实现的代码以使用 LinqToSql(用于培训)。是否可以在 linqToSql 查询中使用 SQL 函数?

4

2 回答 2

1

这是来自 MSDN 论坛帖子的一些有用信息。 Soundex 和 LINQ

于 2008-09-30T17:56:12.917 回答
0

我自己还没有尝试过,但最初发布在这里的以下方法似乎是最好的解决方案。

    [Function(Name="SoundEx", IsComposable = true)]
    public string SoundsLike(string input)
    {
        throw new NotImplementedException();
    }
于 2013-06-06T14:43:30.690 回答