Linq to sql 是否可以在LinqToSql中使用Soundex(或其他SQL函数)?

Linq to sql 是否可以在LinqToSql中使用Soundex(或其他SQL函数)?,linq-to-sql,soundex,Linq To Sql,Soundex,我正在重构当前在存储过程中实现的一些代码,以使用LinqToSql(用于培训)。是否可以在linqToSql查询中使用SQL函数?以下是MSDN论坛帖子中的一些有用信息 我自己还没有尝试过,但下面的方法似乎是最好的解决方案 [Function(Name="SoundEx", IsComposable = true)] public string SoundsLike(string input) { throw new NotImplementedExcep

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

以下是MSDN论坛帖子中的一些有用信息

我自己还没有尝试过,但下面的方法似乎是最好的解决方案

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